tune GetTickCount for threads mode

This commit is contained in:
Vincent Wei
2023-05-08 20:09:23 +08:00
parent bfaeae0023
commit d4add19e6a

View File

@@ -556,9 +556,11 @@ DWORD GUIAPI GetTickCount (void)
else {
__mg_tick_counter = SHAREDRES_TIMER_COUNTER;
}
#else /* defined _MGRM_PROCESSES */
#elif defined(_MGRM_STANDALONE)
__mg_tick_counter = __mg_os_get_time_ticks ();
#endif /* not defined _MGRM_PROCESSES */
#else /* not defined _MGRM_PROCESSES and _MGRM_PROCESSES */
/* do nothing here because the desktop thread updates the tick count */
#endif /* not defined _MGRM_PROCESSES and _MGRM_PROCESSES */
return __mg_tick_counter;
}