Added getRealTime() for windows.

This commit is contained in:
Hauke Heibel 2010-02-22 11:23:27 +01:00
parent f797ba0abe
commit d5af5ab92b

View File

@ -126,8 +126,9 @@ public:
inline double getRealTime()
{
#ifdef WIN32
// TODO
return getCputime;
SYSTEMTIME st;
GetSystemTime(&st);
return (double)st.wSecond + 1.e-6 * (double)st.wMilliseconds;
#else
struct timeval tv;
struct timezone tz;