提交 44665c4e 编写于 作者: T Tshepang Lekhonkhobe

doc: add a pause

上级 d447ceae
...@@ -94,8 +94,9 @@ pub fn duration_from_earlier(&self, earlier: Instant) -> Duration { ...@@ -94,8 +94,9 @@ pub fn duration_from_earlier(&self, earlier: Instant) -> Duration {
/// ///
/// # Panics /// # Panics
/// ///
/// This function may panic if the current time is earlier than this instant /// This function may panic if the current time is earlier than this
/// which can happen if an `Instant` is produced synthetically. /// instant, which is something that can happen if an `Instant` is
/// produced synthetically.
pub fn elapsed(&self) -> Duration { pub fn elapsed(&self) -> Duration {
Instant::now().duration_from_earlier(*self) Instant::now().duration_from_earlier(*self)
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册