diff options
author | Ahmad Samir <[email protected]> | 2024-08-22 22:44:24 +0300 |
---|---|---|
committer | Ahmad Samir <[email protected]> | 2024-09-01 00:55:34 +0300 |
commit | 155413dec8c43e281526b75e96857de0b58a3ad5 (patch) | |
tree | f3e4266f55a3310f732f65ee5b9cff47fee8fb8b | |
parent | 864b7812a4af321263dcd68847350630506b6992 (diff) |
QTestEventLoop: add changeInterval(nanoseconds) overload
Change-Id: I7644e441ba83fb036c5f0ed3177c51a4e116b9bd
Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r-- | src/testlib/qtesteventloop.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testlib/qtesteventloop.h b/src/testlib/qtesteventloop.h index 1cef911f68f..5d1187ea95d 100644 --- a/src/testlib/qtesteventloop.h +++ b/src/testlib/qtesteventloop.h @@ -31,7 +31,10 @@ public: inline void enterLoop(std::chrono::milliseconds msecs); inline void changeInterval(int secs) - { timer.start(std::chrono::seconds{secs}, this); } + { changeInterval(std::chrono::seconds{secs}); } + + void changeInterval(std::chrono::nanoseconds nsecs) + { timer.start(nsecs, this); } inline bool timeout() const { return _timeout; } |