Closed VictorCMiraldo closed 1 year ago
This is wrong. picosecondsToDiffTime 1
should be one picosecond. But with this change, it will be one second.
@AshleyYakeley you're right! Sorry, I was a little too quick submitting this PR and forgot to rename the functions. The change should include a renaming of picosecondsToDiffTime
to secondsToDiffTime
and vice-versa. This would keep the interface consistent with NominalDiffTime
.
If it's something you'd like, I'm happy to still do it.
The conversion of picoseconds to and from
DiffTime
doesn't keep the unit explicit. Which can be confusing and is not homogeneous with the same conversion, but to and fromNominalDiffTime
. This is a very simple PR to make the API more consistent.