common: Improve docs for MilliSecondsSinceUnixEpoch::now
This commit is contained in:
parent
6b768dc033
commit
733823ea3c
@ -21,7 +21,7 @@ impl MilliSecondsSinceUnixEpoch {
|
|||||||
Some(Self(millis))
|
Some(Self(millis))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The current milliseconds since the unix epoch.
|
/// The current system time in milliseconds since the unix epoch.
|
||||||
pub fn now() -> Self {
|
pub fn now() -> Self {
|
||||||
Self::from_system_time(SystemTime::now()).unwrap()
|
Self::from_system_time(SystemTime::now()).unwrap()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user