aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2013-02-10 10:10:36 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-02-10 10:10:36 (GMT)
commitb0391221820e2104c2a8b66b5669139ab7bff8d0 (patch)
tree45bba90ba508ce009fe66d082e57c11f3eee206b /src
parent34744f504e17274aedeef5c9fca3864efb67c8f4 (diff)
downloadfluxbox-b0391221820e2104c2a8b66b5669139ab7bff8d0.zip
fluxbox-b0391221820e2104c2a8b66b5669139ab7bff8d0.tar.bz2
FbTk::FbTime::mono() yields microseconds since fluxbox started
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/FbTime.cc5
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 87static uint64_t start = ::_mono();
88
89 88
90uint64_t FbTk::FbTime::mono() { 89uint64_t FbTk::FbTime::mono() {
91 return ::_mono(); 90 return ::_mono() - start;
92} 91}
93 92
94 93