this post was submitted on 15 Jun 2023
10 points (100.0% liked)
Programming
13455 readers
21 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think the is the most accurate solution,
clock()
as suggested by another answer may overflow, but this only suffers from potential precision problems with double, but you'd have to wait for an incredibly long time for this to become significant.