2023-01-07 10:21:53 +00:00
|
|
|
/* time.h: Time management functions. */
|
|
|
|
|
2023-01-06 16:35:07 +00:00
|
|
|
#ifndef _TIME_H
|
|
|
|
#define _TIME_H
|
|
|
|
|
2023-01-06 23:21:08 +00: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);
|
|
|
|
|
2023-01-06 23:27:23 +00:00
|
|
|
/* Get the current wall clock time. */
|
|
|
|
time_t time(time_t* tp);
|
|
|
|
|
2023-01-06 23:21:08 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2023-01-06 16:35:07 +00:00
|
|
|
#endif
|