FbTk::FbTime::mono() yields microseconds since fluxbox started
This commit is contained in:
parent
34744f504e
commit
b039122182
1 changed files with 2 additions and 3 deletions
|
@ -84,11 +84,10 @@ uint64_t _mono() {
|
||||||
|
|
||||||
#endif // HAVE_MACH_ABSOLUTE_TIME
|
#endif // HAVE_MACH_ABSOLUTE_TIME
|
||||||
|
|
||||||
|
static uint64_t start = ::_mono();
|
||||||
|
|
||||||
|
|
||||||
uint64_t FbTk::FbTime::mono() {
|
uint64_t FbTk::FbTime::mono() {
|
||||||
return ::_mono();
|
return ::_mono() - start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue