diff options
| author | 李佳 <[email protected]> | 2020-12-14 18:42:52 +0800 |
|---|---|---|
| committer | 李佳 <[email protected]> | 2020-12-14 18:42:52 +0800 |
| commit | aca38ffad42d61983034c9cec1c02059f8085a1d (patch) | |
| tree | 869be1bc35f2638af65d8ecb3db65a035ab6eb37 | |
| parent | 7aa712759eff6311eab468d3d669fa95f870e66e (diff) | |
| -rw-r--r-- | src/timer/sapp_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timer/sapp_timer.c b/src/timer/sapp_timer.c index 57c3f9e..1f2b462 100644 --- a/src/timer/sapp_timer.c +++ b/src/timer/sapp_timer.c @@ -389,7 +389,7 @@ static inline long long sapp_get_current_time_in_ms(void) //gettimeofday(&t, NULL); //tms = t.tv_sec * 1000 + t.tv_usec/1000; struct timespec t; - clock_gettime(CLOCK_MONOTONIC, &t); + clock_gettime(CLOCK_REALTIME, &t); tms = (t.tv_sec)*1000 + (t.tv_nsec)/(1000*1000); return tms; |
