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:
Shengliang Guan 2021-02-03 17:45:13 +08:00 committed by GitHub
commit 51a13cef39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -188,11 +188,7 @@ static void removeTimer(uintptr_t id) {
}
static int64_t getMonotonicMs(void) {
#ifdef WINDOWS
return (int64_t) getMonotonicUs() / 1000;
#else
return taosGetTimestampMs();
#endif
}
static void addToWheel(tmr_obj_t* timer, uint32_t delay) {