From: fredb Date: Fri, 13 Mar 2009 07:33:38 +0000 (+0000) Subject: Compile under windows X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;ds=inline;h=c2c4cad75384fe11b13260c0139ac74434fcaf0c;p=simgear.git Compile under windows --- 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)