From af19c636bd5eca6adbe2c0739c8982a0d3b51ae6 Mon Sep 17 00:00:00 2001 From: paladin-t Date: Mon, 7 Dec 2015 13:13:26 +0800 Subject: [PATCH] -removed ticks on non-win platforms. --- shell/main.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/shell/main.c b/shell/main.c index f48cb94..fa72e61 100755 --- a/shell/main.c +++ b/shell/main.c @@ -867,16 +867,6 @@ static int_t _ticks(void) { 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 */ # undef _HAS_TICKS #endif /* _MSC_VER */