mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlCore: msecs now using steady_clock
git-svn-id: svn://ultimatepp.org/upp/trunk@12603 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5b3175c067
commit
021c158ed4
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ int64 usecs(int64 prev)
|
|||
|
||||
int msecs(int prev)
|
||||
{
|
||||
auto p2 = std::chrono::high_resolution_clock::now();
|
||||
auto p2 = std::chrono::steady_clock::now();
|
||||
return (int)std::chrono::duration_cast<std::chrono::milliseconds>(p2.time_since_epoch()).count() - prev;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue