Tracking Issue for `std::time::Stopwatch`
Open
Nobody has claimed this yet.
A-time
C-tracking-issue
S-tracking-unimplemented
T-libs
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Feature gate: #![feature(stopwatch)]
This is a tracking issue for std::time::Stopwatch; optimized for performance measurements.
Public API
// std::time
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, ...)]
pub struct Stopwatch { ... }
impl Stopwatch {
pub fn start() -> Self;
pub fn elapsed(self) -> Duration;
pub fn duration_since(self, other: Self) -> Duration;
pub fn checked_duration_since(self, other: Self) -> Option<Duration>;
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- ACP: rust-lang/libs-team#789
- Implementation: #161817
- Final comment period (FCP)^1
- Stabilization PR
Unresolved Questions
- None yet.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the proposed public API in this tracking issue and implementation issue #161817. Check the implementation progress against the listed Stopwatch methods and feature gate; done means implementation, final comment period, and stabilization steps have been completed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100