Luna/libc/include/time.h

25 lines
378 B
C
Raw Normal View History

2023-01-08 15:29:30 +01:00
/* time.h: Time management. */
2023-01-07 11:21:53 +01:00
#ifndef _TIME_H
#define _TIME_H
2023-01-07 00:21:08 +01:00
#include <bits/clockid.h>
#include <bits/timespec.h>
#ifdef __cplusplus
extern "C"
{
#endif
/* Get the current value of a system clock. */
int clock_gettime(clockid_t id, struct timespec* ts);
/* Get the current wall clock time. */
time_t time(time_t* tp);
2023-01-07 00:21:08 +01:00
#ifdef __cplusplus
}
#endif
#endif