Skip to content

Commit 1b7b7a3

Browse files
committed
more stopwatch fixes
1 parent 7adeaaf commit 1b7b7a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LuaSTG/LuaSTG/LuaBinding/LW_StopWatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void fcyStopWatch::Reset()
5353

5454
double fcyStopWatch::GetElapsed()
5555
{
56-
return std::chrono::duration_cast<std::chrono::seconds>(Clock::now() - m_cLast - m_cFixAll).count();
56+
return std::chrono::duration_cast<std::chrono::duration<double, std::ratio<1>>>(Clock::now() - m_cLast - m_cFixAll).count();
5757
}
5858

5959
namespace LuaSTGPlus::LuaWrapper

0 commit comments

Comments
 (0)