mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
28 lines
414 B
Arduino
28 lines
414 B
Arduino
|
//
|
||
|
// FILE: datetime_millis2duration.ino
|
||
|
// AUTHOR: Rob Tillaart
|
||
|
// PURPOSE: demo millis2duration
|
||
|
// URL: https://github.com/RobTillaart/dateTimeHelpers
|
||
|
|
||
|
|
||
|
#include "dateTimeHelpers.h"
|
||
|
|
||
|
|
||
|
void setup()
|
||
|
{
|
||
|
Serial.begin(115200);
|
||
|
Serial.println(__FILE__);
|
||
|
}
|
||
|
|
||
|
|
||
|
void loop()
|
||
|
{
|
||
|
uint32_t mil = micros(); // simulation fast clock
|
||
|
|
||
|
Serial.println(millis2duration(mil));
|
||
|
delay(1234);
|
||
|
}
|
||
|
|
||
|
|
||
|
// -- END OF FILE --
|