10#ifndef M5_UTILITY_COMPATIBILITY_FEATURE_HPP
11#define M5_UTILITY_COMPATIBILITY_FEATURE_HPP
35void delay(
const unsigned long ms);
72 return now - start_at;
103inline bool hasElapsed(
const T start_at,
const typename std::common_type<T>::type duration,
const T now)
IRAM_ATTR unsigned long millis()
Returns the number of milliseconds passed since the Arduino board began running the current program.
Definition compatibility_feature.cpp:46
IRAM_ATTR unsigned long micros()
Returns the number of microseconds since the Arduino board began running the current program.
Definition compatibility_feature.cpp:57
void delay(const unsigned long ms)
Pauses the program for the amount of time (in milliseconds) specified as parameter.
Definition compatibility_feature.cpp:68
void delayMicroseconds(const unsigned int us)
Pauses the program for the amount of time (in microseconds) specified by the parameter.
Definition compatibility_feature.cpp:88
unsigned long elapsed_time_t
Elapsed time unit (ms)
Definition compatibility_feature.hpp:53
bool hasElapsed(const T start_at, const typename std::common_type< T >::type duration, const T now)
Has the duration passed between start_at and now?
Definition compatibility_feature.hpp:103
T elapsedSince(const T start_at, const T now)
Gets the elapsed time between start_at and now.
Definition compatibility_feature.hpp:70
Top level namespace of M5.
Definition base64.cpp:39