Closed de-vri-es closed 2 years ago
This PR implements conversion from Duration to std::time::Duration, conversions between Time and std::time::SystemTime, and adds Time::now() to get the current time.
Duration
std::time::Duration
Time
std::time::SystemTime
Time::now()
It also adds unit tests for the new conversions.
Processed your feedback :)
Feel free to squash and merge for a clean history, if you like.
/edit: Forgot to push, pushed now ^^
Fixed the tests :)
This PR implements conversion from
Duration
tostd::time::Duration
, conversions betweenTime
andstd::time::SystemTime
, and addsTime::now()
to get the current time.It also adds unit tests for the new conversions.