summaryrefslogtreecommitdiffstats
path: root/tokio/tests/test_clock.rs
AgeCommit message (Collapse)Author
2020-03-23time: fix repeated pause/resume of time (#2253)Tudor Sidea
The resume function was breaking the guarantee that Instants should never be less than any previously measured Instants when created. Altered the pause and resume function such that they will not break this guarantee. After resume, the time should continue from where it left off. Created test to prove that the advanced function still works as expected. Added additional tests for the pause/advance/resume functions.