Merge pull request #5126 from taosdata/fix/TD-2402-v2
[TD-2875]<fix>: remove WINDOWS macro related code in ttimer
This commit is contained in:
commit
51a13cef39
|
@ -188,11 +188,7 @@ static void removeTimer(uintptr_t id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int64_t getMonotonicMs(void) {
|
static int64_t getMonotonicMs(void) {
|
||||||
#ifdef WINDOWS
|
|
||||||
return (int64_t) getMonotonicUs() / 1000;
|
return (int64_t) getMonotonicUs() / 1000;
|
||||||
#else
|
|
||||||
return taosGetTimestampMs();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void addToWheel(tmr_obj_t* timer, uint32_t delay) {
|
static void addToWheel(tmr_obj_t* timer, uint32_t delay) {
|
||||||
|
|
Loading…
Reference in New Issue