We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49dee12 commit c7faa79Copy full SHA for c7faa79
test/core/TimeSourceTest.cpp
@@ -25,6 +25,15 @@ TEST_SUITE("TimeSourceTest") {
25
CHECK(stopCount < (startCount + microToNano(200)));
26
}
27
28
+ TEST_CASE("delta() should not increase but return difference since last time") {
29
+ TimeSource timeSource;
30
+
31
+ // Not sure if this is reliable, but works atm
32
+ for (int i = 0; i < 10; i++) {
33
+ CHECK(timeSource.delta() < 1000);
34
+ }
35
36
37
TEST_CASE("reset() should reset delta") {
38
TimeSource timeSource;
39
0 commit comments