mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 17:33:15 +08:00
Added getRealTime() for windows.
This commit is contained in:
parent
f797ba0abe
commit
d5af5ab92b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user