#include <sys/time.h>
#endif
+#ifdef MSVC
+#include <sys/timeb.h>
+#endif
+
class Timer
{
public:
return 0;
return (now.tv_sec + static_cast<double>(now.tv_usec) / 1000000.);
+#elif defined(MSVC)
+ struct _timeb now;
+ _ftime (&now);
+ return (now.time + static_cast<double>(now.millitm) / 1000.);
#else
return 0;
#endif