aboutsummaryrefslogtreecommitdiffstats
path: root/checks/timer.cpp
diff options
context:
space:
mode:
authorlloyd <lloyd@randombit.net>2008-09-07 17:56:20 +0000
committerlloyd <lloyd@randombit.net>2008-09-07 17:56:20 +0000
commit3f708f84e4597382f7a77e2b8870f000245a10e3 (patch)
tree957c49b6e7edf383cfc7a75f82866b00609f6ef9 /checks/timer.cpp
parent3eba26d870fcc93a706d90a01f2bf2993a90c13d (diff)
Tweak timer output
Diffstat (limited to 'checks/timer.cpp')
-rw-r--r--checks/timer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/timer.cpp b/checks/timer.cpp
index 916b42ab2..bbb893d3e 100644
--- a/checks/timer.cpp
+++ b/checks/timer.cpp
@@ -37,14 +37,14 @@ std::ostream& operator<<(std::ostream& out, Timer& timer)
out << events_per_second << " " << timer.get_name() << " per second; ";
- if(timer.seconds_per_event() < 10)
+ if(timer.seconds_per_event() < 1)
out << std::setprecision(2) << std::fixed
<< timer.ms_per_event() << " ms/" << timer.get_name();
else
out << std::setprecision(4) << std::fixed
<< timer.seconds_per_event() << " s/" << timer.get_name();
- if(timer.seconds() < 10)
+ if(timer.seconds() > 3)
out << " (" << timer.events() << " ops in "
<< timer.milliseconds() << " ms)";
else