diff options
Diffstat (limited to 'lib/qtime.c')
-rw-r--r-- | lib/qtime.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/qtime.c b/lib/qtime.c index 3ec34a72..42b903da 100644 --- a/lib/qtime.c +++ b/lib/qtime.c @@ -192,3 +192,14 @@ qt_craft_monotonic(void) { return (monotonic * times_scale_q) + ((monotonic * times_scale_r) / times_clk_tcks) ; } ; + +/*------------------------------------------------------------------------------ + * Get crafted monotonic time -- in seconds + */ +extern time_t +qt_craft_mono_secs(void) +{ + qt_craft_monotonic() ; /* update the monotonic counter */ + + return monotonic / times_clk_tcks ; +} ; |