Show More
@@ -912,7 +912,7 b' python-profiler package from non-free.""")' | |||||
912 | Number of times to execute `run`. |
|
912 | Number of times to execute `run`. | |
913 |
|
913 | |||
914 | """ |
|
914 | """ | |
915 |
twall0 = time.t |
|
915 | twall0 = time.perf_counter() | |
916 | if nruns == 1: |
|
916 | if nruns == 1: | |
917 | t0 = clock2() |
|
917 | t0 = clock2() | |
918 | run() |
|
918 | run() | |
@@ -935,7 +935,7 b' python-profiler package from non-free.""")' | |||||
935 | print(" Times : %10s %10s" % ('Total', 'Per run')) |
|
935 | print(" Times : %10s %10s" % ('Total', 'Per run')) | |
936 | print(" User : %10.2f s, %10.2f s." % (t_usr, t_usr / nruns)) |
|
936 | print(" User : %10.2f s, %10.2f s." % (t_usr, t_usr / nruns)) | |
937 | print(" System : %10.2f s, %10.2f s." % (t_sys, t_sys / nruns)) |
|
937 | print(" System : %10.2f s, %10.2f s." % (t_sys, t_sys / nruns)) | |
938 |
twall1 = time.t |
|
938 | twall1 = time.perf_counter() | |
939 | print("Wall time: %10.2f s." % (twall1 - twall0)) |
|
939 | print("Wall time: %10.2f s." % (twall1 - twall0)) | |
940 |
|
940 | |||
941 | @skip_doctest |
|
941 | @skip_doctest |
General Comments 0
You need to be logged in to leave comments.
Login now