diff --git a/Source/Profiler.cpp b/Source/Profiler.cpp index 92618936..3d9e8fb3 100644 --- a/Source/Profiler.cpp +++ b/Source/Profiler.cpp @@ -34,12 +34,12 @@ void CProfiler::EnterZone(ZoneHandle zoneHandle) { assert(std::this_thread::get_id() == m_workThreadId); - auto thisTime = boost::chrono::high_resolution_clock::now(); + auto thisTime = std::chrono::high_resolution_clock::now(); if(!m_zoneStack.empty()) { auto topZoneHandle = m_zoneStack.top(); - auto duration = boost::chrono::duration_cast(thisTime - m_currentTime); + auto duration = std::chrono::duration_cast(thisTime - m_currentTime); AddTimeToZone(topZoneHandle, duration.count()); } @@ -53,11 +53,11 @@ void CProfiler::ExitZone() assert(std::this_thread::get_id() == m_workThreadId); assert(!m_zoneStack.empty()); - auto thisTime = boost::chrono::high_resolution_clock::now(); + auto thisTime = std::chrono::high_resolution_clock::now(); { auto topZoneHandle = m_zoneStack.top(); - auto duration = boost::chrono::duration_cast(thisTime - m_currentTime); + auto duration = std::chrono::duration_cast(thisTime - m_currentTime); AddTimeToZone(topZoneHandle, duration.count()); } diff --git a/Source/Profiler.h b/Source/Profiler.h index 626a8bbb..fca3597f 100644 --- a/Source/Profiler.h +++ b/Source/Profiler.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include "Singleton.h" #include "Types.h" @@ -20,7 +20,7 @@ public: }; typedef std::vector ZoneArray; - typedef boost::chrono::high_resolution_clock::time_point TimePoint; + typedef std::chrono::high_resolution_clock::time_point TimePoint; CProfiler(); virtual ~CProfiler();