Skip to content

Commit de06d70

Browse files
authored
Get timer as a floating-point type instead of an integer (#527)
1 parent f87ea00 commit de06d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/SofaRuntime/src/SofaPython3/SofaRuntime/Timer/Submodule_Timer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ py::dict getRecords(const std::string & id) {
4040
static auto timer_freq = CTime::getTicksPerSec();
4141
auto getTime = [](ctime_t t)
4242
{
43-
return 1000 * t / timer_freq;
43+
return 1000. * t / timer_freq;
4444
};
4545

4646
const auto records = AdvancedTimer::getRecords(id);

0 commit comments

Comments
 (0)