![]() |
ARMEBS4
revision-26.06.2015
|
Provides a simple way to manage time and timeouts. More...
![]() |
Data Structures | |
struct | timeout_t |
Timeout structure. More... | |
Functions | |
static timeout_t | time_get (void) |
Get current time in obscure format from boot. More... | |
static uint32_t | time_elapsed (timeout_t timeout) |
Is this time passed? More... | |
timeout_t | time_set_timeout_ms (uint32_t ms) |
Set an obscure time at least ms milliseconds in the future. More... | |
Provides a simple way to manage time and timeouts.
|
inlinestatic |
Get current time in obscure format from boot.
Definition at line 46 of file time.h.
Referenced by time_elapsed(), and time_set_timeout_ms().
|
inlinestatic |
Is this time passed?
timeout | the timeout value |
Definition at line 71 of file time.h.
References time_get().
Referenced by Audio_PlaySin(), camera_continuous_stop(), and camera_one_shot_wait().
timeout_t time_set_timeout_ms | ( | uint32_t | ms | ) |
Set an obscure time at least ms milliseconds in the future.
ms | the minimum delay |
time_elapsed will return true when more than ms have passed
Definition at line 15 of file time.c.
References time_get().
Referenced by Audio_PlaySin(), camera_continuous_stop(), and camera_one_shot_wait().