Skip to content

Commit

Permalink
Update time.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mass10 committed Jul 15, 2023
1 parent 6fdfe1c commit 37a6aa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bin/rmake/util/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
trait MyDurationFormatter {
/// Format elapsed time.
///
/// ### Returns
/// # Returns
/// * Formatted string
fn to_string(&self) -> String;
}
Expand Down Expand Up @@ -43,7 +43,7 @@ pub struct Stopwatch {
impl Stopwatch {
/// Return a new instance.
///
/// ### Returns
/// # Returns
/// A new instance of `Stopwatch`
pub fn new() -> Stopwatch {
return Stopwatch { time: std::time::Instant::now() };
Expand All @@ -53,7 +53,7 @@ impl Stopwatch {
impl std::fmt::Display for Stopwatch {
/// Format elapsed time.
///
/// ### Arguments
/// # Arguments
/// * `f` Target to write
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
let elapsed = std::time::Instant::now() - self.time;
Expand Down

0 comments on commit 37a6aa8

Please sign in to comment.