KNX IoT
KNX IoT Point API stack implementation
|
platform abstraction of a real time clock More...
Go to the source code of this file.
Functions | |
void | oc_clock_init (void) |
A second, measured in system clock time. More... | |
unsigned long | oc_clock_seconds (void) |
Get the current value of the platform seconds. More... | |
oc_clock_time_t | oc_clock_time (void) |
Get the current clock time. More... | |
void | oc_clock_wait (oc_clock_time_t t) |
Wait for a given number of ticks. More... | |
platform abstraction of a real time clock
Definition in file oc_clock.h.
void oc_clock_init | ( | void | ) |
A second, measured in system clock time.
Initialize the clock library.
This function initializes the clock library and should be called from the main() function of the system.
unsigned long oc_clock_seconds | ( | void | ) |
Get the current value of the platform seconds.
This could be the number of seconds since startup, or since a standard epoch.
oc_clock_time_t oc_clock_time | ( | void | ) |
Get the current clock time.
This function returns the current system clock time.
void oc_clock_wait | ( | oc_clock_time_t | t | ) |
Wait for a given number of ticks.
t | How many ticks. |