|
Enumerations | |
| enum | time_origin_t { SINCE_BOOT, SINCE_EPOCH } |
Time origin. More... | |
Functions | |
| void | time_init (uint32_t sec, uint32_t usec) |
| Initialize time. | |
| int | get_time (enum time_origin_t origin, uint32_t *sec, uint32_t *usec) |
| Get current time. | |
| int | get_time_us (enum time_origin_t origin, uint64_t *usec) |
| Get current time. | |
| enum time_origin_t |
| int get_time | ( | enum time_origin_t | origin, | |
| uint32_t * | sec, | |||
| uint32_t * | usec | |||
| ) |
Get current time.
return the current time, from the selected origin, in a sec/usec split.
| [in] | origin | Select the time origin (Since boot or since Epoch) |
| [out] | sec | Udapted with the number of seconds since the selected origin. |
| [out] | usec | Updated with the number of microseconds since the selected origin. (excluding the seconds in sec) |
| int get_time_us | ( | enum time_origin_t | origin, | |
| uint64_t * | usec | |||
| ) |
Get current time.
return the current time, from the selected origin, in usec.
| [in] | origin | Select the time origin (Since boot or since Epoch) |
| [out] | usec | Updated with the number of microseconds since the selected origin. |
| void time_init | ( | uint32_t | sec, | |
| uint32_t | usec | |||
| ) |
Initialize time.
| [in] | sec | Number of seconds since Epoch when the system started. |
| [in] | usec | Number of microseconds since Epoch when the system started (excluding the seconds in sec). |
1.6.1