mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
reltimefloat(): allow negative result #10544
For "backwards" duration, reltimefloat() should return negative value like its counterpart reltimestr(). refbab24a88ab
ref06af88cd72
ref #10521 fix #10452
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user