diff options
Diffstat (limited to 'ScreenManager.c')
-rw-r--r-- | ScreenManager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ScreenManager.c b/ScreenManager.c index 17a76bf3..6e7551fe 100644 --- a/ScreenManager.c +++ b/ScreenManager.c @@ -15,6 +15,7 @@ in the source distribution for its full text. #include "CRT.h" #include "FunctionBar.h" #include "Object.h" +#include "Platform.h" #include "ProcessList.h" #include "ProvideCurses.h" #include "XUtils.h" @@ -92,9 +93,8 @@ void ScreenManager_resize(ScreenManager* this, int x1, int y1, int x2, int y2) { static void checkRecalculation(ScreenManager* this, double* oldTime, int* sortTimeout, bool* redraw, bool* rescan, bool* timedOut) { ProcessList* pl = this->header->pl; - struct timeval tv; - gettimeofday(&tv, NULL); - double newTime = ((double)tv.tv_sec * 10) + ((double)tv.tv_usec / 100000); + Platform_gettime_realtime(&pl->realtime, &pl->realtimeMs); + double newTime = ((double)pl->realtime.tv_sec * 10) + ((double)pl->realtime.tv_usec / 100000); *timedOut = (newTime - *oldTime > this->settings->delay); *rescan |= *timedOut; |