forked from mpusz/mp-units
fixed sign-conversion warning in doubtful conversion between std::clock_t and std::time_t
This commit is contained in:
committed by
Mateusz Pusz
parent
017183653d
commit
e5462c1b65
@@ -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;}
|
||||
|
Reference in New Issue
Block a user