Skip to content

Tags

Tags give the ability to mark specific points in history as being important
  • 2.2.0
    c92beb2c · chore(release): 2.2.0 ·
    [2.2.0] - 2023-01-13
    
    added:
    * added `Stopwatch::set_in_place`
    
    changed:
    * clarified documentation for `Stopwatch::from_raw` and `<Stopwatch as PartialEq>::eq`
    * optimized `Stopwatch` `PartialEq` and `Hash` impls
    
  • 2.1.1
    f488e16c · chore(release): 2.1.1 ·
    [2.1.1] - 2022-12-18
    
    changed:
    * changed `#[must_use]` message for `Guard`
    
  • 2.1.0
    d2c254ea · chore(release): 2.1.0 ·
    [2.1.0] - 2022-12-03
    
    added:
    * added `Stopwatch::checked_add` and `Stopwatch::checked_sub`
    * added `Stopwatch::checked_elapsed` and `Stopwatch::checked_elapsed_at`
    * added `Stopwatch::checked_stop` and `Stopwatch::checked_stop_at`
    
  • 2.0.2
    9bd83743 · chore(release): 2.0.2 ·
    [2.0.2] - 2022-11-19
    
    changed:
    * expanded on main-page crate documentation
    * clarified `*_at` method docs
      * previously they may have implied that they block until the current time is `anchor`, when they actually just pretend it is
    * re-ordered definitions of `Stopwatch` methods
    
  • 2.0.1
    aa6cc0e7 · chore(release): 2.0.1 ·
    [2.0.1] - 2022-11-04
    
    changed:
    * added `#[must_use]` message for `Guard`
    * inlined function called in `Display` impl for `Error`
    * removed unused lints
    
    fixed:
    * docs: fixed `Error` description, which implied it's exclusive to `Stopwatch`
    
  • 2.0.0
    e8f64c0a · chore(release): 2.0.0 ·
    [2.0.0] - 2022-10-07
    
    changed:
    * BREAKING: changed `Guard::new` to return `libsw::Result<Guard>`
    * BREAKING: changed `Error`
      * replaced all variants with `SwStart`, `SwStop`, `SwGuard`, and `GuardNew`
      * marked `non_exhaustive`
      * added `Error::expects_running`
      * added `Error::expects_stopped`
      * changed `Display` impl
    * changed `Stopwatch::guard` and `Stopwatch::guard_at` to return `Error::SwGuard`
    * shortened impl of `Stopwatch::start_at` and `Stopwatch::stop_at`
    * replaced unreachable unwrap in `Stopwatch::guard_at` with debug assertion
    * re-licensed under `MIT OR Apache-2.0`
    
  • 1.8.2
    9ec34ac6 · chore(release): 1.8.2 ·
    [1.8.2] - 2022-09-17
    
    * mark `Guard` with `#[must_use]`
    
  • 1.8.1
    dc5178bc · chore(release): 1.8.1 ·
    [1.8.1] - 2022-09-08
    
    * updated crate description
    * added documentation notes on functions which take an anchor
      * `Stopwatch::elapsed_at`
      * `Stopwatch::start_at`
      * `Stopwatch::toggle_at`
      * `Guard::elapsed_at`
    
  • 1.8.0
    bdcbc051 · chore(release): 1.8.0 ·
    [1.8.0] - 2022-09-05
    
    * added `Stopwatch::toggle_at`
    
  • 1.7.0
    01ec121d · chore(release): 1.7.0 ·
    [1.7.0] - 2022-09-04
    
    * added `Guard::new`
    * improved clarity of error messages
    * cleaned up implementation of `Stopwatch::guard` and `Stopwatch::is_stopped`
    * defined MSRV as 1.58.1
    
  • 1.6.0
    16067a55 · chore(release): 1.6.0 ·
    [1.6.0] - 2022-09-03
    
    * added `PartialEq`, `Eq`, and `Hash` impls for `Guard`
    * minor docs improvements
    
  • 1.5.0
    52159caf · chore(release): 1.5.0 ·
    [1.5.0] - 2022-09-02
    
    * added `PartialEq` and `Eq` impls for `Stopwatch`
    * added `Result<T>` type, an alias for `Result<T, Error>`
    * changed implementation of `Hash` for `Stopwatch`
    * updated documentation for `Stopwatch::from_raw`
    * minor docs improvements
    
  • 1.4.0
    76341e7f · chore(release): 1.4.0 ·
    [1.4.0] - 2022-08-20
    
    * added `Guard::elapsed`
    * added `Guard::elapsed_at`
    * minor docs improvements
    
  • 1.3.0
    51e51ba7 · chore(release): 1.3.0 ·
    [1.3.0] - 2022-08-10
    
    * added `Guard`
      * added `Stopwatch::guard`
      * added `Stopwatch::guard_at`
      * added `Debug` and `Drop` impl for `Guard`
    
  • 1.2.0
    3a5b05c2 · chore(release): 1.2.0 ·
    [1.2.0] - 2022-08-09
    
    * added `Stopwatch::elapsed_at`
    * added `Stopwatch::start_at`
    * added `Stopwatch::stop_at`
    
  • 1.1.0
    57a7ba47 · chore(release): 1.1.0 ·
    [1.1.0] - 2022-08-09
    
    * added `Stopwatch::saturating_add`
    * added `Stopwatch::saturating_sub`
    * improved docs organisation
    
  • 1.0.0
    05eb48a4 · chore(release): 1.0.0 ·
    [1.0.0] - 2022-08-09
    
    * changed `Stopwatch::new`
    * added `Stopwatch::new_started`
    * added `Stopwatch::with_elapsed`
    * added `Stopwatch::with_elapsed_started`
    * added `Stopwatch::from_raw`
    * added `Stopwatch::replace`
    * added `Hash` impl for `Stopwatch`
    * added `Display`, `Error`, and `Hash` impls for `Error`
    * added examples to docs
    * improved test consistency
    * renamed license files
    
  • 0.2.0
    b1b0a0d0 · chore(release): 0.2.0 ·
    [0.2.0] - 2022-08-07
    
    * added Debug impl for Stopwatch
    * improved docs organisation
    
  • 0.1.1
    42ec8b34 · chore(release): 0.1.1 ·
    [0.1.1] - 2022-08-07
    
    * added README.md
    * updated crate metadata
    
  • 0.1.0
    [0.1.0] - 2022-08-07
    
    * added Stopwatch
      * added Stopwatch::new
      * added Stopwatch::start
      * added Stopwatch::stop
      * added Stopwatch::toggle
      * added Stopwatch::reset
      * added Stopwatch::set
      * added Stopwatch::elapsed
      * added Stopwatch::is_running
      * added Stopwatch::is_stopped
      * added Add, Sub, AddAssign, and SubAssign impls for Stopwatch