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
This commit is contained in:
Jan Möbius
2012-01-16 09:58:56 +00:00
parent f450c7a625
commit bd14f87e73
2 changed files with 7 additions and 3 deletions

View File

@@ -195,9 +195,7 @@ void TimerImplStd::stop(void)
Timer::Timer(void) Timer::Timer(void)
{ {
#if defined(WIN32) && defined(_MSC_VER) #if defined(__GNUC__) && defined(__POSIX__)
impl_ = new TimerImplWin32;
#elif defined(__GNUC__) && defined(__POSIX__)
// CLOCK_REALTIME // CLOCK_REALTIME
// CLOCK_MONOTONIC - ? // CLOCK_MONOTONIC - ?
// CLOCK_REALTIME_HR - RTlinux // CLOCK_REALTIME_HR - RTlinux

View File

@@ -124,6 +124,12 @@ double TimerImplWin32::seconds(void) const
return (double)count_.QuadPart/(double)freq_.QuadPart; return (double)count_.QuadPart/(double)freq_.QuadPart;
} }
Timer::Timer(void)
{
impl_ = new TimerImplWin32;
state_ = Stopped;
}
#endif #endif
// ============================================================================ // ============================================================================