-removed ticks on non-win platforms.
This commit is contained in:
parent
f99fc30586
commit
af19c636bd
10
shell/main.c
10
shell/main.c
@ -867,16 +867,6 @@ static int_t _ticks(void) {
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#elif defined __GNUC__ || defined __clang__ /* _MSC_VER */
|
|
||||||
static int_t _ticks(void) {
|
|
||||||
struct timespec ts;
|
|
||||||
int_t ret = 0;
|
|
||||||
|
|
||||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
|
||||||
ret = (ts.tv_sec * 1000 + ts.tv_nsec / 1000000);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
# undef _HAS_TICKS
|
# undef _HAS_TICKS
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user