|
PebbleOS v4.48.0-75-g7416f78a1
|
#include <stdint.h>#include <time.h>#include <pbl/kernel/compiler.h>#include <pbl/kernel/types.h>#include <pbl_arch_cycle.h>Functions | |
| uint64_t | pbl_uptime_ticks (void) |
| Get the time since the scheduler started, in ticks. | |
| uint64_t | pbl_uptime_ms (void) |
| Get the time since the scheduler started, in milliseconds. | |
| uint64_t | pbl_uptime_us (void) |
| Get the time since the scheduler started, in microseconds. | |
| time_t | pbl_realtime (void) |
| Get the wall clock time. | |
| uint64_t | pbl_realtime_ms (void) |
| Get the wall clock time, in milliseconds. | |
| void | pbl_realtime_set (time_t t) |
| Set the wall clock time. | |
| static uint32_t | pbl_cycle_get_32 (void) |
| Read the CPU cycle counter. | |
| uint32_t | pbl_cycles_per_sec (void) |
| Get the rate of the CPU cycle counter. | |
| void | pbl_cycles_per_sec_set (uint32_t hz) |
| Set the rate of the CPU cycle counter. | |