diff options
Diffstat (limited to 'source/blender/blenlib/intern/time.c')
-rw-r--r-- | source/blender/blenlib/intern/time.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/time.c b/source/blender/blenlib/intern/time.c index d86d68f6195..2f53aa38e77 100644 --- a/source/blender/blenlib/intern/time.c +++ b/source/blender/blenlib/intern/time.c @@ -52,14 +52,16 @@ double PIL_check_seconds_timer(void) QueryPerformanceCounter((LARGE_INTEGER*) &count); return count/perffreq; - } else { + } + else { static double accum= 0.0; static int ltick= 0; int ntick= GetTickCount(); if (ntick<ltick) { accum+= (0xFFFFFFFF-ltick+ntick)/1000.0; - } else { + } + else { accum+= (ntick-ltick)/1000.0; } |