View Single Post
w00t's Avatar
Posts: 1,055 | Thanked: 4,107 times | Joined on Oct 2009 @ Norway
#54
Originally Posted by tanghus View Post
I just been hit by this with my very simple Kitchen Timer app.

Does that mean I will have to include the entire source tree of libiphb in my project because it's not white-listed in harbour?
Assuming you're timing intervals/countdowns (at least I assume that's what a kitchen timer would be doing..) try looking at clock_gettime with a clk_id of 'CLOCK_BOOTTIME'. That's probably the simplest solution.

Still to be investigated is whether we can move QElapsedTimer and friends to use this: it's a nice theory, but at least earlier we ran into all sorts of quirks, probably thanks to a kernel bug that made CLOCK_BOOTTIME sometimes _not_ monotonic (hooray). That's since been fixed, but we haven't yet gone back to this on the middleware side.
__________________
i'm a Qt expert and former Jolla sailor (forever sailing, in spirit).
if you like, read more about me.
if you find me entertaining, or useful, thank me. if you don't, then tell me why.