I got a problem with the Timer. I don't get this timer starting !
It is always at ZERO and if i use timer->isStopped() i always get TRUE.
And YES, i started the Timer with timer->start() and i heard that since 0.12 you don't need to write timer->tick() in the main-loop. (i never used a version below 0.12, so i dont start writing it anywhere
i'm not sure, maybe there's a mistake in my code or something.
I don't have the Code here, but it looks something like this:
Code: Select all
device->createDevice(...);
ITimer* timer=device->getTimer();
ILogger* logger=device->getLogger();
timer->start();
while(device->run())
{
if (timer->isStopped()) logger->log("Timer is Stopped !");
};
And yes, timer->getRealTime() works ! it shows me the ms which passed since i started the app... but timer->getTimer() is always ZERO cause the Timer doesn't start.
If you need the hole Code around there, i can get it for you in some hours. I just had to cry my problems out here ^^