This commit is contained in:
aozhiwei 2019-10-08 17:56:39 +08:00
parent 403fbb49bc
commit 01adda7e31
2 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ namespace a8
if (!timer) {
abort();
}
long long remain_time = a8::XGetTickCount() - timer->expires;
long long remain_time = timer->expires - a8::XGetTickCount();
return std::max(remain_time, (long long)0);
}

View File

@ -267,7 +267,7 @@ namespace a8
if (!timer) {
abort();
}
long long remain_time = get_tick_count_func_(context_) - timer->expires;
long long remain_time = timer->expires - get_tick_count_func_(context_);
return std::max(remain_time, (long long)0);
}