diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2013-02-10 10:10:36 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2013-02-10 10:10:36 (GMT) |
commit | b0391221820e2104c2a8b66b5669139ab7bff8d0 (patch) | |
tree | 45bba90ba508ce009fe66d082e57c11f3eee206b /src | |
parent | 34744f504e17274aedeef5c9fca3864efb67c8f4 (diff) | |
download | fluxbox-b0391221820e2104c2a8b66b5669139ab7bff8d0.zip fluxbox-b0391221820e2104c2a8b66b5669139ab7bff8d0.tar.bz2 |
FbTk::FbTime::mono() yields microseconds since fluxbox started
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/FbTime.cc | 5 |
1 files 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() { | |||
84 | 84 | ||
85 | #endif // HAVE_MACH_ABSOLUTE_TIME | 85 | #endif // HAVE_MACH_ABSOLUTE_TIME |
86 | 86 | ||
87 | 87 | static uint64_t start = ::_mono(); | |
88 | |||
89 | 88 | ||
90 | uint64_t FbTk::FbTime::mono() { | 89 | uint64_t FbTk::FbTime::mono() { |
91 | return ::_mono(); | 90 | return ::_mono() - start; |
92 | } | 91 | } |
93 | 92 | ||
94 | 93 | ||