From c2c4cad75384fe11b13260c0139ac74434fcaf0c Mon Sep 17 00:00:00 2001 From: fredb Date: Fri, 13 Mar 2009 07:33:38 +0000 Subject: [PATCH] Compile under windows --- simgear/timing/timestamp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/timing/timestamp.cxx b/simgear/timing/timestamp.cxx index 4d14a42a..7f7773f4 100644 --- a/simgear/timing/timestamp.cxx +++ b/simgear/timing/timestamp.cxx @@ -63,7 +63,7 @@ void SGTimeStamp::stamp() { unsigned int t; t = timeGetTime(); _sec = t / 1000; - _nsec = ( t - ( seconds * 1000 ) ) * 1000 * 1000; + _nsec = ( t - ( _sec * 1000 ) ) * 1000 * 1000; #elif defined(_POSIX_TIMERS) && (0 < _POSIX_TIMERS) struct timespec ts; #if defined(_POSIX_MONOTONIC_CLOCK) -- 2.39.5