|
STATIC INLINE BOOL | ValidTimeval (const struct timeval *tv) |
|
STATIC INLINE BOOL | ValidTimeval64 (const struct timeval64 *tv) |
|
STATIC INLINE BOOL | ValidTimerID (UINT16 swtmrID) |
|
STATIC | SPIN_LOCK_INIT (g_timeSpin) |
|
VOID | OsAdjTime (VOID) |
|
int | adjtime (const struct timeval *delta, struct timeval *oldDelta) |
|
STATIC INLINE struct timespec64 | OsTimeSpecAdd (const struct timespec64 t1, const struct timespec64 t2) |
| 增加指定时间 更多...
|
|
STATIC INLINE struct timespec64 | OsTimeSpecSub (const struct timespec64 t1, const struct timespec64 t2) |
| 减少指定时间 更多...
|
|
STATIC VOID | OsGetHwTime (struct timespec64 *hwTime) |
| 获取硬件时间 更多...
|
|
STATIC INT32 | OsSetTimeOfDay (const struct timeval64 *tv, const struct timezone *tz) |
| 设置日历 更多...
|
|
int | settimeofday (const struct timeval *tv, const struct timezone *tz) |
|
int | settimeofday64 (const struct timeval64 *tv, const struct timezone *tz) |
|
int | setlocalseconds (int seconds) |
| 设置本地秒数 更多...
|
|
STATIC INT32 | OsGetTimeOfDay (struct timeval64 *tv, struct timezone *tz) |
| 获取日历时间 更多...
|
|
int | gettimeofday64 (struct timeval64 *tv, struct timezone *tz) |
|
int | gettimeofday (struct timeval *tv, void *_tz) int gettimeofday(struct timeval *tv |
| gettimeofday
更多...
|
|
| if (tv==NULL) |
|
| if (OsGetTimeOfDay(&stTimeVal64, tz)==-1) |
|
| if (stTimeVal64.tv_sec >(long long) LONG_MAX) |
|
int | clock_settime (clockid_t clockID, const struct timespec *tp) |
|
UINT32 | GetTidFromClockID (clockid_t clockID) |
|
const pid_t | GetPidFromClockID (clockid_t clockID) |
|
static int | PthreadGetCputime (clockid_t clockID, struct timespec *ats) |
|
static int | ProcessGetCputime (clockid_t clockID, struct timespec *ats) |
|
static int | GetCputime (clockid_t clockID, struct timespec *tp) |
|
static int | CheckClock (const clockid_t clockID) |
|
static int | CpuClockGetres (const clockid_t clockID, struct timespec *tp) |
|
int | clock_gettime (clockid_t clockID, struct timespec *tp) |
| 当用户程序进行特定系统调用时(例如clock_gettime(CLOCK_REALTIME_COARSE, &ts)),VDSO代码页会将其拦截; 更多...
|
|
int | clock_getres (clockid_t clockID, struct timespec *tp) |
|
int | clock_nanosleep (clockid_t clk, int flags, const struct timespec *req, struct timespec *rem) |
|
static VOID | SwtmrProc (UINTPTR tmrArg) |
|
int | timer_create (clockid_t clockID, struct sigevent *restrict evp, timer_t *restrict timerID) |
|
int | OsTimerCreate (clockid_t clockID, struct ksigevent *evp, timer_t *timerID) |
|
int | timer_delete (timer_t timerID) |
|
int | timer_settime (timer_t timerID, int flags, const struct itimerspec *value, struct itimerspec *oldValue) |
|
int | timer_gettime (timer_t timerID, struct itimerspec *value) |
|
int | timer_getoverrun (timer_t timerID) |
|
STATIC INT32 | DoNanoSleep (UINT64 nanoseconds) |
|
int | usleep (unsigned long useconds) int usleep(unsigned useconds) |
|
int | nanosleep (const struct timespec *rqtp, struct timespec *rmtp) |
|
unsigned int | sleep (unsigned int seconds) |
|
double | difftime (time_t time2, time_t time1) |
|
clock_t | clock (VOID) |
|
clock_t | times (struct tms *buf) |
|
int | setitimer (int which, const struct itimerval *value, struct itimerval *ovalue) |
|
int | getitimer (int which, struct itimerval *value) |
|
VOID | OsVdsoTimeGet (VdsoDataPage *vdsoDataPage) |
| 将最新的时间刷进数据页 更多...
|
|
time_t | time (time_t *t) |
|