From b4a145e60f4bbc90dc780239cc49c024b9f52ca8 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Tue, 28 Jun 2011 17:58:44 -0700 Subject: Added a nanosecond timer to time.rs, support for some floating point casts, and a commandline-driven mode for pfib.rs --- src/rt/sync/timer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rt/sync/timer.h') diff --git a/src/rt/sync/timer.h b/src/rt/sync/timer.h index aae098a1119..6d833396cf9 100644 --- a/src/rt/sync/timer.h +++ b/src/rt/sync/timer.h @@ -11,7 +11,7 @@ private: uint64_t _timeout; uint64_t get_time(); #if __WIN32__ - uint64_t _ticks_per_us; + uint64_t _ticks_per_ns; #endif public: timer(); @@ -20,6 +20,7 @@ public: double get_elapsed_time_in_ms(); int64_t get_timeout(); bool has_timed_out(); + uint64_t nano_time(); virtual ~timer(); }; -- cgit 1.4.1-3-g733a5