File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 77[ ![ Downloads] ( https://img.shields.io/pypi/dd/codetiming )] ( https://pypi.org/project/codetiming/ )
88[ ![ Tests] ( https://img.shields.io/github/workflow/status/realpython/codetiming/unit_tests?label=tests )] ( https://github.com/realpython/codetiming/actions )
99[ ![ Checked with mypy] ( http://www.mypy-lang.org/static/mypy_badge.svg )] ( http://mypy-lang.org/ )
10- [ ![ Interrogate DocStrings] ( https://github. com/realpython/codetiming/blob/master /interrogate_badge.svg )] ( https://interrogate.readthedocs.io/ )
10+ [ ![ Interrogate DocStrings] ( https://raw.githubusercontent. com/realpython/codetiming/main /interrogate_badge.svg )] ( https://interrogate.readthedocs.io/ )
1111[ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/psf/black )
1212[ ![ MIT license] ( https://img.shields.io/pypi/l/codetiming )] ( https://mit-license.org/ )
1313
@@ -89,7 +89,6 @@ t2 = Timer(text=lambda secs: f"Elapsed time: {format_timespan(secs)}")
8989```
9090
9191
92-
9392## Capturing the Elapsed Time
9493
9594When using ` Timer ` as a class, you can capture the elapsed time when calling ` .stop() ` :
@@ -122,7 +121,7 @@ WARNING:root:Time spent: 3.58
1221213.5836678670002584
123122
124123>> > with t:
125- ... _ = list (range (100000000 ))
124+ ... _ = list (range (100_000_000 ))
126125...
127126WARNING :root:Time spent: 1.73
128127
You can’t perform that action at this time.
0 commit comments