15#include "boards/board.h"
44 return ((start_ms <= now) ? (now - start_ms) : 0);
static void sleep()
Enter power sleep mode as defined by Power::set_default_mode().
Structure used to hold a time value with microsecond precision.
uint16_t micros() const
Number of elapsed microseconds (0..999).
uint32_t millis() const
Number of elapsed milliseconds.
void(*)(uint32_t ms) DELAY_PTR
Function pointer type used for time::delay global variable.
MILLIS_PTR millis
Count number of milliseconds elapsed since some time base reference (generally since MCU startup).
void delay_us(uint16_t us) INLINE
Delay program execution for the given amount of microseconds.
void default_delay(uint32_t ms)
Delay program execution for the given amount of milliseconds.
void yield()
Utility method used by many FastArduino API in order to "yield" some processor time; concretely it ju...
RTTTime delta(const RTTTime &time1, const RTTTime &time2)
Compute the time delta from time1 and time2.
uint32_t(*)() MILLIS_PTR
Function pointer type used for time::millis global variable.
uint32_t since(uint32_t start_ms)
Compute the time elapsed, in milliseconds, since start_ms.
DELAY_PTR delay
Delay program execution for the given amount of milliseconds.
Simple power support for AVR MCU.