diff options
author | lloyd <[email protected]> | 2008-09-05 14:42:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-05 14:42:38 +0000 |
commit | 47b2b46293b87e28f3e34b8bf1057894d4091345 (patch) | |
tree | 70a6ebd42215ea41f768d5319c0f709be5552145 /checks/timer.cpp | |
parent | d3bee6b7f45ee35eb76c56ac48146ba951d186c5 (diff) |
Choice of clock_gettime, gettimeofday, times, and clock for benchmark timings
Diffstat (limited to 'checks/timer.cpp')
-rw-r--r-- | checks/timer.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/checks/timer.cpp b/checks/timer.cpp index 0a5a05de2..916b42ab2 100644 --- a/checks/timer.cpp +++ b/checks/timer.cpp @@ -1,14 +1,6 @@ #include "timer.h" -#include <time.h> #include <iomanip> -u64bit Timer::get_clock() - { - struct timespec tv; - clock_gettime(CLOCK_REALTIME, &tv); - return (tv.tv_sec * 1000000000ULL + tv.tv_nsec); - } - Timer::Timer(const std::string& n, u32bit e_mul) : name(n), event_mult(e_mul) { |