mirror of
https://github.com/libretro/Play-.git
synced 2024-12-02 22:46:23 +00:00
Use std::chrono instead of boost::chrono.
This commit is contained in:
parent
33102cb2d3
commit
240bd08ddd
@ -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<boost::chrono::microseconds>(thisTime - m_currentTime);
|
||||
auto duration = std::chrono::duration_cast<std::chrono::microseconds>(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<boost::chrono::microseconds>(thisTime - m_currentTime);
|
||||
auto duration = std::chrono::duration_cast<std::chrono::microseconds>(thisTime - m_currentTime);
|
||||
AddTimeToZone(topZoneHandle, duration.count());
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <stack>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
#include <boost/chrono.hpp>
|
||||
#include <chrono>
|
||||
#include "Singleton.h"
|
||||
#include "Types.h"
|
||||
|
||||
@ -20,7 +20,7 @@ public:
|
||||
};
|
||||
|
||||
typedef std::vector<ZONE> ZoneArray;
|
||||
typedef boost::chrono::high_resolution_clock::time_point TimePoint;
|
||||
typedef std::chrono::high_resolution_clock::time_point TimePoint;
|
||||
|
||||
CProfiler();
|
||||
virtual ~CProfiler();
|
||||
|
Loading…
Reference in New Issue
Block a user