summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qtimer.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2024-08-23 18:31:20 +0300
committerAhmad Samir <a.samirh78@gmail.com>2024-08-31 18:38:03 +0300
commit215c2d65b22f96e492f26791301d6efc1b11116f (patch)
tree3c4e9ec05dbe05d2a929795adae2bc019803d8aa /src/corelib/kernel/qtimer.cpp
parent54d02df0fc85070613508ed11d6159df9c8e3db7 (diff)
QBasicTimer: port to std::chrono::nanoseconds
To match the precision in other Timer* related classes. Use QAbstractEventFilter::Duration, which is nanoseconds currently. I think all timer/eventloop-related classes should have one central typdef to the chrono::duration that decides the currently supported precision. Since these methods are new, we can make one of them inline, as pointed out in the code review. Drive-by change: compare to 0ns instead of using duration.count(). [ChangeLog][QtCore][QBasicTimer] Added start() overloads taking std::chrono::nanoseconds, and deprecated the start() overloads taking chrono::milliseconds. This change is backward compatible. Change-Id: Id5f55d581c200eeee29560287c951c485fb9f0ec Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qtimer.cpp')
0 files changed, 0 insertions, 0 deletions