LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
osal_time.c
Go to the documentation of this file.
1
2
4
6
8{
9 if (!out) {
11 }
12
13 time_t now = time(NULL);
14 if (now == (time_t)-1) {
16 }
17
18 out->epoch_seconds = (int64_t)now;
20}
21
23{
24 static const osal_time_ops_t OPS = {
26 };
27 return &OPS;
28}
osal_time_status_t osal_time_now_impl(osal_time_t *out)
Definition osal_time.c:7
const osal_time_ops_t * osal_time_default_ops(void)
Definition osal_time.c:22
osal_time_status_t
@ OSAL_TIME_STATUS_OK
@ OSAL_TIME_STATUS_INVALID
@ OSAL_TIME_STATUS_ERROR
osal_time_status_t(* now)(osal_time_t *out)
int64_t epoch_seconds