18 lines
296 B
C
18 lines
296 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _TIME_H_
|
|
#define _TIME_H_
|
|
|
|
#include <kernel/types.h>
|
|
|
|
struct timespec {
|
|
time_t tv_sec;
|
|
i64 tv_nsec;
|
|
};
|
|
|
|
time_t arch_get_real_time();
|
|
time_t unix_time();
|
|
u64 tsc_calibrate();
|
|
u64 rdtsc();
|
|
struct timespec get_realtime();
|
|
|
|
#endif /* _TIME_H_ */
|