Hi, I just want to mention, that I fixed the bug.
And when looking at the code, I found a way to improve it. The timer uses poll for waiting until the timer is ready or some other event occurs. Poll expects a timeout in milliseconds. I found ppoll on linux, which accepts nanoseconds timeout. When using it, the timer will get more accurate. Using poll the timer may be delayed up to one millisecond. With ppoll it can be triggered much more precise. To do it, I decided to change all timeout parameters from milliseconds to cxxtools::Timespan, which has microseconds resolution. It makes the code also easier to understand. When the timeout is specified as a size_t it is not clear, whether it means seconds or milliseconds or whatever. With cxxtools::Timespan it is more clear. There are even nice helper classes to make it really readable. Instead of specifying a timeout of e.g. 100 you may right cxxtools::Milliseconds(100) instead, which makes it really clear, what is meant. Tommi Am 18.07.2014 18:36, schrieb Tommi Mäkitalo: > Hi, > > these days I realized, that the timer in cxxtools is currently broken in > git-HEAD. I will fix it soon. > > Some times ago I improved cxxtools::Timespan and I guess, this broke the > timer code. > > Tommi > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Tntnet-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tntnet-general ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
