summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author李佳 <[email protected]>2020-12-14 18:42:52 +0800
committer李佳 <[email protected]>2020-12-14 18:42:52 +0800
commitaca38ffad42d61983034c9cec1c02059f8085a1d (patch)
tree869be1bc35f2638af65d8ecb3db65a035ab6eb37
parent7aa712759eff6311eab468d3d669fa95f870e66e (diff)
Fix v4.1 stream createtime msv4.1.18dev-4.1
-rw-r--r--src/timer/sapp_timer.c2
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;