From 240bd08ddd8e2589fd64143a57b6f4e86c9e4920 Mon Sep 17 00:00:00 2001 From: Jean-Philip Desjardins Date: Sun, 17 Jul 2016 16:10:58 -0400 Subject: [PATCH] Use std::chrono instead of boost::chrono. --- Source/Profiler.cpp | 8 ++++---- Source/Profiler.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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();