Skip to content

Commit 3227f93

Browse files
committed
update example
1 parent 07ff42e commit 3227f93

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/test_statswrapper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
from __future__ import annotations
22

3+
import time
4+
35
from telemetric.statswrapper import print_all_stats, stats_deco
46

57

68
@stats_deco(None, b=("a", 3), c=None)
79
def test_func(a, b=None, c=None):
10+
time.sleep(a)
811
return a, b, c
912

1013

1114
# Do things with test_func
1215
test_func(1, 3)
16+
test_func(2, 3)
1317

1418
# How many calls (errors, and how often something was odd with the args)
1519
print("counts: ", test_func._get_counts()) # noqa: T201

0 commit comments

Comments
 (0)