We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06fc826 + a4c63ac commit b44a423Copy full SHA for b44a423
src/TaskManager/CallbackApp/app.py
@@ -15,6 +15,7 @@
15
import pika
16
import uuid
17
18
+from time import perf_counter as pc
19
20
def main():
21
parser = argparse.ArgumentParser()
@@ -50,4 +51,9 @@ def main():
50
51
print('Message sent.')
52
53
if __name__ == "__main__":
- main()
54
+ t0 = pc()
55
+ try:
56
+ main()
57
+ except Exception as e:
58
+ print(e)
59
+ print(f"Duration: {pc()-t0}")
0 commit comments