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:
parent
b7d496e6d6
commit
38226ca84e
@ -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) {
|
||||
/* */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user