Bug fix for win32 current_time function
pull/2/head
David Freese 2010-06-05 14:18:10 -05:00
rodzic 7aab2d5c50
commit 870bfa6fd5
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1567,13 +1567,13 @@ static double current_time(void)
}
#else
#include <ctime>
/// This is much less accurate.
static double current_time(void)
{
struct time tmp_tim ;
time( &tmp_timb );
clock_t clks = clock();
return tmp_timeb ;
return clks * 1.0 / CLOCKS_PER_SEC;
}
#endif