fixed sign-conversion warning in doubtful conversion between std::clock_t and std::time_t

This commit is contained in:
Yves Delley
2021-02-23 08:09:10 +01:00
committed by Mateusz Pusz
parent 017183653d
commit e5462c1b65

View File

@@ -51,7 +51,7 @@ namespace units{ namespace experimental{
static constexpr auto divider = 1000.0 / CLOCKS_PER_SEC;
return q_time::ms<>(
difftime(wanted , start_time)
static_cast<double>(wanted - start_time)
) * divider;
}
bool is_running() const {return running;}