diff options
Diffstat (limited to 'src/core/timer.h')
-rw-r--r-- | src/core/timer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/timer.h b/src/core/timer.h index 9e172bf..b878875 100644 --- a/src/core/timer.h +++ b/src/core/timer.h @@ -28,11 +28,14 @@ public: */ void mark(); - /*! return the time elapsed since the last mark + /*! return the time elapsed since the last mark, in seconds * @see mark() */ float elapsed(); + /// return timestamp since last mark, in microseconds + unsigned long timestamp(); + private: float timer_elapsed; struct timezone timer_tz; |