From b0391221820e2104c2a8b66b5669139ab7bff8d0 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sun, 10 Feb 2013 11:10:36 +0100 Subject: FbTk::FbTime::mono() yields microseconds since fluxbox started --- src/FbTk/FbTime.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/FbTk/FbTime.cc b/src/FbTk/FbTime.cc index c86edb1..7af8d35 100644 --- a/src/FbTk/FbTime.cc +++ b/src/FbTk/FbTime.cc @@ -84,11 +84,10 @@ uint64_t _mono() { #endif // HAVE_MACH_ABSOLUTE_TIME - - +static uint64_t start = ::_mono(); uint64_t FbTk::FbTime::mono() { - return ::_mono(); + return ::_mono() - start; } -- cgit v0.11.2