{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreietrv2zdkaj5q55yk3iccoaoqm62d554qf2ryxzxqbj7o5325jr2i",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mltaoc3hyty2"
},
"path": "/t/instant-past-value-constant/24297#post_9",
"publishedAt": "2026-05-14T16:11:28.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "Storing the program startup time still isn't const, and makes this logic wrong for the first second after startup:\n\nJarredAllen:\n\n>\n> if self.last_bar_timestamp.elapsed() >= Duration::from_secs(1) { self.do_bar(); }\n>\n\nGranted that logic is still iffy for `Instant::MIN` on devices which zero their timers to boot up (but that's probably fine).",
"title": "`Instant::PAST_VALUE` constant?"
}