1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

use high_resolution_clock instead of steady_clock

This commit is contained in:
Andrey Filipenkov 2021-11-23 11:56:06 +03:00
parent fc064b1c45
commit af6d666778
2 changed files with 2 additions and 2 deletions

View File

@ -378,7 +378,7 @@ bool isWeeklyRevisitable(const CGObjectInstance * obj)
return false;
}
uint64_t timeElapsed(std::chrono::time_point<std::chrono::steady_clock> start)
uint64_t timeElapsed(std::chrono::time_point<std::chrono::high_resolution_clock> start)
{
auto end = std::chrono::high_resolution_clock::now();

View File

@ -218,7 +218,7 @@ bool compareHeroStrength(HeroPtr h1, HeroPtr h2);
bool compareArmyStrength(const CArmedInstance * a1, const CArmedInstance * a2);
bool compareArtifacts(const CArtifactInstance * a1, const CArtifactInstance * a2);
uint64_t timeElapsed(std::chrono::time_point<std::chrono::steady_clock> start);
uint64_t timeElapsed(std::chrono::time_point<std::chrono::high_resolution_clock> start);
// todo: move to obj manager
bool shouldVisit(const Nullkiller * ai, const CGHeroInstance * h, const CGObjectInstance * obj);