aboutsummaryrefslogtreecommitdiffstats
path: root/checks/timer.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-15 16:42:13 +0000
committerlloyd <[email protected]>2008-09-15 16:42:13 +0000
commitfdbbea2a13f45c6eb6e9ead20c6ac1a288bbf447 (patch)
treee140454a16942aa1f2329281c66051e6955cbdfc /checks/timer.cpp
parentb6ccda1e41bf86247b21436f7e490a2395bfc65c (diff)
Explicit cast from double to int using static_cast
Diffstat (limited to 'checks/timer.cpp')
-rw-r--r--checks/timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/checks/timer.cpp b/checks/timer.cpp
index bbb893d3e..a5225f23b 100644
--- a/checks/timer.cpp
+++ b/checks/timer.cpp
@@ -33,7 +33,7 @@ std::ostream& operator<<(std::ostream& out, Timer& timer)
{
//out << timer.value() << " ";
- int events_per_second = timer.events() / timer.seconds();
+ int events_per_second = static_cast<int>(timer.events() / timer.seconds());
out << events_per_second << " " << timer.get_name() << " per second; ";