feat: device subsystem rework
[lunaix-os.git] / lunaix-os / includes / lunaix / clock.h
1 #ifndef __LUNAIX_CLOCK_H
2 #define __LUNAIX_CLOCK_H
3
4 #include <lunaix/time.h>
5
6 void
7 clock_init();
8
9 void
10 clock_walltime(datetime_t* datetime);
11
12 /**
13  * @brief 返回当前系统时间,即自从开机到当前时刻的毫秒时。
14  *
15  * @return time_t
16  */
17 time_t
18 clock_systime();
19
20 time_t
21 clock_unixtime();
22
23 #endif /* __LUNAIX_CLOCK_H */