Skip to content

Commit

Permalink
Add timing metrics for response to handler in MQ client
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Nov 10, 2023
1 parent d9798e4 commit 5e13a74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neon_audio/tts/neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import os

from os.path import dirname
from time import time

from json_database import JsonStorageXDG
from ovos_bus_client.message import Message
from ovos_plugin_manager.language import OVOSLangDetectionFactory,\
Expand Down Expand Up @@ -339,6 +341,7 @@ def execute(self, sentence: str, ident: str = None, listen: bool = False,
# TODO dedicated klat handler/plugin
if "klat_data" in message.context:
LOG.info("Sending klat.response")
message.context['timing']['response_sent'] = time()
self.bus.emit(
message.forward("klat.response",
{"responses": responses,
Expand Down

0 comments on commit 5e13a74

Please sign in to comment.