blob: 31e91d0157e2216ec4a809be5d8f2834dfb522c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <asm/vdso.h>
#include <syscall.h>
#include <time.h>
int clock_gettime(clockid_t clock_id, struct timespec *tp)
{
#if defined(__VDSO_CLOCK_GETTIME)
if (__vdso_clock_gettime)
return __vdso_clock_gettime(clock_id, tp);
#endif
return syscall(clock_gettime, clock_id, tp);
}
|