Commit bd14f87e authored by Jan Möbius's avatar Jan Möbius

Fixed warning by splitting out win32 specific stuff from timer.cc

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@498 fdac6126-5c0c-442c-9429-916003d36597
parent f450c7a6
......@@ -195,9 +195,7 @@ void TimerImplStd::stop(void)
Timer::Timer(void)
{
#if defined(WIN32) && defined(_MSC_VER)
impl_ = new TimerImplWin32;
#elif defined(__GNUC__) && defined(__POSIX__)
#if defined(__GNUC__) && defined(__POSIX__)
// CLOCK_REALTIME
// CLOCK_MONOTONIC - ?
// CLOCK_REALTIME_HR - RTlinux
......
......@@ -124,6 +124,12 @@ double TimerImplWin32::seconds(void) const
return (double)count_.QuadPart/(double)freq_.QuadPart;
}
Timer::Timer(void)
{
impl_ = new TimerImplWin32;
state_ = Stopped;
}
#endif
// ============================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment