aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2014-05-12 08:22:49 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2014-05-12 08:22:49 (GMT)
commit913244789fac779d8c4ce719d3e9534312feacc2 (patch)
treebcd0065e3c3b7bb977a6b594acfb0295c2dd86b7 /src/IconbarTool.hh
parent9b40943deaac2c72d3cc1c6ec4645a32562ab810 (diff)
downloadfluxbox-913244789fac779d8c4ce719d3e9534312feacc2.zip
fluxbox-913244789fac779d8c4ce719d3e9534312feacc2.tar.bz2
fix clocktool lagging behind and skipping seconds
from time to time (...) time() might be off to gettimeofday() by a second. the reason for this is that time() is usually implemented by just returning the field 'second' of the struct that represents the clock inside the kernel. gettimeofday() on the other hand also takes the 'fraction' field (mostly 'nanoseconds') into account and thus is closer to the current time than time(). the result of using time() was a perceived 'lag', sometimes the clocktool even skipped a second. by using FbTk::FbTime()::system() instead fixes the issue.
Diffstat (limited to 'src/IconbarTool.hh')
0 files changed, 0 insertions, 0 deletions