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.
1 parent 31b77a2 commit 65a69cbCopy full SHA for 65a69cb
doc/tutorial/conditions.rst
@@ -42,15 +42,15 @@ IfElse vs Switch
42
43
n_times = 10
44
45
- tic = time.clock()
+ tic = time.perf_counter()
46
for i in range(n_times):
47
f_switch(val1, val2, big_mat1, big_mat2)
48
- print('time spent evaluating both values %f sec' % (time.clock() - tic))
+ print('time spent evaluating both values %f sec' % (time.perf_counter() - tic))
49
50
51
52
f_lazyifelse(val1, val2, big_mat1, big_mat2)
53
- print('time spent evaluating one value %f sec' % (time.clock() - tic))
+ print('time spent evaluating one value %f sec' % (time.perf_counter() - tic))
54
55
.. testoutput::
56
:hide:
0 commit comments