Commit 5765e591 authored by D-AIRY's avatar D-AIRY

Fixed time_point definition

parent 68f24cc1
......@@ -134,7 +134,7 @@ IXMaterialSystem *CAnimatedModelProvider::getMaterialSystem()
void CAnimatedModelProvider::update(float fDT)
{
typedef std::chrono::system_clock::time_point time_point;
typedef std::chrono::high_resolution_clock::time_point time_point;
time_point tStart = std::chrono::high_resolution_clock::now();
CAnimatedModelShared *pShared;
......
......@@ -353,7 +353,7 @@ void CDynamicModelProvider::getLevelSize(const XEventLevelSize *pData)
void CDynamicModelProvider::update()
{
typedef std::chrono::system_clock::time_point time_point;
typedef std::chrono::high_resolution_clock::time_point time_point;
time_point tStart = std::chrono::high_resolution_clock::now();
CDynamicModelShared *pShared;
......
......@@ -74,7 +74,7 @@ protected:
CTimeManager *m_pTimers = NULL;
CTaskManager *m_pTaskManager = NULL;
std::chrono::system_clock::time_point m_tLastUpdateTime;
std::chrono::high_resolution_clock::time_point m_tLastUpdateTime;
};
#endif
......@@ -4,6 +4,8 @@ Copyright © Vitaliy Buturlin, Evgeny Danilovich, 2017, 2018
See the license in LICENSE
***********************************************************/
#include <functional>
#include "TaskManager.h"
#include "PerfMon.h"
......
......@@ -455,7 +455,7 @@ void cmd_perf_dump()
};
std::chrono::system_clock::time_point tStart, tEnd, tSync;
std::chrono::high_resolution_clock::time_point tStart, tEnd, tSync;
Array<Array<const CPerfRecord*>> aaRecords;
Array<const CPerfRecord*> aRecords;
......
......@@ -166,7 +166,7 @@ SX_LIB_API void Core_MWaitFor(ID id);
struct CPerfRecord
{
int m_iDepth;
std::chrono::system_clock::time_point m_time;
std::chrono::high_resolution_clock::time_point m_time;
ID m_idSection;
bool m_isEntry;
};
......
/***********************************************************
Copyright Vitaliy Buturlin, Evgeny Danilovich, 2017, 2018
Copyright © Vitaliy Buturlin, Evgeny Danilovich, 2017, 2018
See the license in LICENSE
***********************************************************/
......@@ -12,7 +12,7 @@ See the license in LICENSE
#include <common/Array.h>
#include <chrono>
typedef std::chrono::system_clock::time_point time_point;
typedef std::chrono::high_resolution_clock::time_point time_point;
#include <core/sxcore.h>
......@@ -33,9 +33,9 @@ public:
~CTime();
time_point m_timePoint;
int64_t m_iTimeTotal; //
int64_t m_iTimeTotal; //общее прошедшее время с момента запуска
long double m_fDeltaFraction;
int64_t m_iUnixtimeCurr; // unix
int64_t m_iUnixtimeCurr; //текущее время в unix
int64_t m_iUnixtimeStart;
float m_fSpeed;
bool m_isWorking;
......
......@@ -16,7 +16,7 @@ See the license in LICENSE
#include "proptable.h"
typedef std::chrono::system_clock::time_point time_point;
typedef std::chrono::high_resolution_clock::time_point time_point;
class CBaseEntity;
struct ISXConfig;
......
......@@ -5,7 +5,7 @@
#include <graphix/graphix.h>
#include <chrono>
typedef std::chrono::system_clock::time_point time_point;
typedef std::chrono::high_resolution_clock::time_point time_point;
#if 0
#ifndef SXGUI_LIB
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment