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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user