1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-09-11 10:25:40 +03:00

feat(server): add execution time

This commit is contained in:
louistiti 2022-09-27 19:49:09 +08:00
parent b7d496e6d6
commit 38226ca84e

View File

@ -266,7 +266,10 @@ server.handleOnConnection = (socket) => {
const utterance = data.value
try {
LogHelper.time('Utterance processed in')
await provider.nlu.process(utterance)
LogHelper.title('Execution Time')
LogHelper.timeEnd('Utterance processed in')
} catch (e) {
/* */
}