-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stabilize Duration::span as-is? #1243
Comments
I strongly disagree; IMO, this should really be a free-standing function (e.g. |
That’s a good point, it probably should be moved. Though I’d still like to have one expression rather than three statements. |
+1 for |
Definitely. |
Closing in favor of rust-lang/rust#27799. |
std::time
currently contains:I’d like to stabilize this method unchanged. Even if a "moment in time" abstraction exists, doing the
let start = now(); do stuff; now() - start
dance gets tedious very quickly and a closure-basedDuration::span
method would still be valuable.The text was updated successfully, but these errors were encountered: