diff --git a/bindings/SofaRuntime/src/SofaPython3/SofaRuntime/Timer/Submodule_Timer.cpp b/bindings/SofaRuntime/src/SofaPython3/SofaRuntime/Timer/Submodule_Timer.cpp index 762f33212..b18d88a01 100644 --- a/bindings/SofaRuntime/src/SofaPython3/SofaRuntime/Timer/Submodule_Timer.cpp +++ b/bindings/SofaRuntime/src/SofaPython3/SofaRuntime/Timer/Submodule_Timer.cpp @@ -40,7 +40,7 @@ py::dict getRecords(const std::string & id) { static auto timer_freq = CTime::getTicksPerSec(); auto getTime = [](ctime_t t) { - return 1000 * t / timer_freq; + return 1000. * t / timer_freq; }; const auto records = AdvancedTimer::getRecords(id);