reltimefloat(): allow negative result #10544

For "backwards" duration, reltimefloat() should return negative value
like its counterpart reltimestr().

ref bab24a88ab
ref 06af88cd72
ref #10521
fix #10452
This commit is contained in:
Justin M. Keyes
2019-07-20 10:46:09 +02:00
committed by GitHub
parent afef973262
commit f55c1e4233
3 changed files with 13 additions and 16 deletions

View File

@@ -169,7 +169,7 @@ bool profile_equal(proftime_T tm1, proftime_T tm2) FUNC_ATTR_CONST
return tm1 == tm2;
}
/// Converts a proftime_T value `tm` to a signed integer.
/// Converts time duration `tm` (`profile_sub` result) to a signed integer.
///
/// @return signed representation of the given time value
int64_t profile_signed(proftime_T tm)