diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-06-28 17:58:44 -0700 |
|---|---|---|
| committer | Eric Holk <eholk@mozilla.com> | 2011-06-30 11:32:10 -0700 |
| commit | b4a145e60f4bbc90dc780239cc49c024b9f52ca8 (patch) | |
| tree | 020734b92aa7fea2269b3915d45d1d9730c4192c /src/rt/sync/timer.h | |
| parent | 441c7e06109772f7ff942682fb6d0a7535f03666 (diff) | |
| download | rust-b4a145e60f4bbc90dc780239cc49c024b9f52ca8.tar.gz rust-b4a145e60f4bbc90dc780239cc49c024b9f52ca8.zip | |
Added a nanosecond timer to time.rs, support for some floating point casts, and a commandline-driven mode for pfib.rs
Diffstat (limited to 'src/rt/sync/timer.h')
| -rw-r--r-- | src/rt/sync/timer.h | 3 |
1 files changed, 2 insertions, 1 deletions
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(); }; |
