Skip to content

Commit

Permalink
feat(time): set msecs public
Browse files Browse the repository at this point in the history
Add `must_use` and documentation.
  • Loading branch information
gwen-lg committed Mar 8, 2025
1 parent ee53f2d commit 4561b2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/time/time_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ impl TimePoint {
self.0 as f64 / 1000.
}

const fn msecs(self) -> i64 {
/// Get milliseconds corresponding to `TimePoint`.
#[must_use]
pub const fn msecs(self) -> i64 {
self.0
}

Expand Down

0 comments on commit 4561b2f

Please sign in to comment.