|
@@ -13,7 +13,9 @@
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
+#ifndef WIN32
|
|
|
#include <sys/time.h>
|
|
|
+#endif
|
|
|
|
|
|
#include "vislearning/baselib/ProgressBarQt.h"
|
|
|
|
|
@@ -92,12 +94,17 @@ void ProgressBarQt::displayTimeStat(int posy, char *text, double time)
|
|
|
|
|
|
double ProgressBarQt::getCurrentTime()
|
|
|
{
|
|
|
+
|
|
|
+#ifdef WIN32
|
|
|
+ throw std::exception("function not yet ported, use boost::time_date here");
|
|
|
+#else
|
|
|
struct timeval curtime;
|
|
|
|
|
|
gettimeofday ( &curtime, NULL );
|
|
|
|
|
|
//return curtime.tv_sec * 100.0 + curtime.tv_usec / 10000.0;
|
|
|
return curtime.tv_sec + curtime.tv_usec * 1e-6;
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
void ProgressBarQt::show()
|