Erriez Timestamp library for Arduino
1.1.0
TM1638 button and LED controller library for Arduino
|
This is a timestamp library for Arduino that can be used to measure execution time in microseconds or milliseconds.
Any Arduino / ESP8266 board.
Arduino IDE | Examples | Erriez Timestamp:
## Example output Timestamp | Microseconds
## Example output Timestamp | Milliseconds
Add include file:
Create timestamp object with microseconds resolution:
Create timestamp object with milliseconds resolution:
### Single measurement
### Multiple measurements
TimestampMicros uses the function micros()
. TimestampMillis uses the function millis()
.
Please refer to the description of these functions for the maximum possible duration and minimum resolution:
The timestamp functions introduce a small calling overhead on low-end microcontrollers. For example calling start()
and delta()
on an Arduino UNO may take an additional 4 to 8 microseconds. This is overhead is negligible on targets with a higher CPU clock such as the ESP8266.
Please refer to the Wiki page.