Browse Source

Timeit

pull/3/head
Jure Šorn 5 years ago
parent
commit
2e00229fe2
1 changed files with 2 additions and 1 deletions
  1. 3
      README.md

3
README.md

@ -1271,7 +1271,8 @@ duration = time() - start_time
#### Times execution of the passed code: #### Times execution of the passed code:
```python ```python
from timeit import timeit from timeit import timeit
timeit('"-".join(str(n) for n in range(100))', number=10000, globals=globals())
timeit('"-".join(str(n) for n in range(100))',
number=10000, globals=globals())
``` ```
#### Generates a PNG image of call graph and highlights the bottlenecks: #### Generates a PNG image of call graph and highlights the bottlenecks:

Loading…
Cancel
Save