You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source code is [available at GitHub](https://github.com/realpython/codetiming).
10
10
11
+
11
12
## Basic Usage
12
13
13
14
You can use `codetiming.Timer` in several different ways:
@@ -36,6 +37,7 @@ You can use `codetiming.Timer` in several different ways:
36
37
# Do something
37
38
```
38
39
40
+
39
41
## Arguments
40
42
41
43
`Timer` accepts the following arguments when it's created, all are optional:
@@ -74,4 +76,9 @@ WARNING:root:Time spent: 1.73
74
76
{'example': 5.312697440000193}
75
77
```
76
78
77
-
The example shows how you can redirect the timer output to the logging module. Note that the elapsed time spent in the two different uses of `t` has been accumulated in `Timer.timers`.
79
+
The example shows how you can redirect the timer output to the logging module. Note that the elapsed time spent in the two different uses of `t` has been accumulated in `Timer.timers`.
80
+
81
+
82
+
## Acknowledgements
83
+
84
+
`codetiming` is based on a similar module originally developed for the [Midgard Geodesy library](https://kartverket.github.io/midgard/) at the [Norwegian Mapping Authority](https://www.kartverket.no/en/).
0 commit comments