|
FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
Set a new time::millis function for the duration of the current scope; when the scope is left, the previous time::millis function is restored.
More...
#include <fastarduino/time.h>
Public Member Functions | |
| auto_millis (const auto_millis &)=delete | |
| auto_millis & | operator= (const auto_millis &)=delete |
| auto_millis (MILLIS_PTR new_millis) INLINE | |
Set new time::millis to new_millis after storing current function for later restore. More... | |
Set a new time::millis function for the duration of the current scope; when the scope is left, the previous time::millis function is restored.
Usage example:
|
inlineexplicit |
Set new time::millis to new_millis after storing current function for later restore.
| new_millis | new function pointer to replace time::millis |