summary refs log tree commit diff
path: root/library/std/src/time
AgeCommit message (Collapse)AuthorLines
2020-10-21Duration::zero() -> Duration::ZEROJubilee Young-3/+3
Duration::ZERO composes better with match and various other things, at the cost of an occasional parens, and results in less work for the optimizer, so let's use that instead.
2020-10-21Dogfood Duration API in std::time testsJubilee Young-16/+16
This expands time's test suite to use more and in more places the range of methods and constants added to Duration in recent proposals for the sake of testing more API surface area and improving legibility.
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+165
Also doing fmt inplace as requested.