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 c70d8cd commit 4b5bb6bCopy full SHA for 4b5bb6b
Test_rollover/Test_rollover.ino
@@ -1,7 +1,3 @@
1
-// To do: Works only when the 2 library files (cpp, h) are in the project directory
2
-// Seems to work for delay values from 0 to 2^31-1
3
-// Rollover is tested
4
-
5
#include <Arduino.h>
6
#include <Streaming.h>
7
#include "avdweb_VirtualDelay.h"
@@ -40,8 +36,8 @@ void loop()
40
36
( delay_ms.start(ms);
41
37
delay_us.start(us);
42
38
)
43
- if(delay_ms.elapsed()) Serial << "\n" << millis()-t0_ms << "ms"; // result is 1021ms
44
- if(delay_us.elapsed()) Serial << "\n" << micros()-t0_us << "us"; // result is 2021884us
39
+ if(delay_ms.elapsed()) Serial << "\n" << millis()-t0_ms << "ms"; // result is ~ 1021ms
+ if(delay_us.elapsed()) Serial << "\n" << micros()-t0_us << "us"; // result is ~ 2021884us
45
}
46
47
0 commit comments