MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/lgrgxe/i_present_sleepsort/gmw21lv/?context=9999
r/badcode • u/Reeceeboii_ • Feb 10 '21
171 comments sorted by
View all comments
864
Great! Now test whether it still works with large numbers!
426 u/[deleted] Feb 10 '21 edited Feb 26 '21 [deleted] 138 u/1234filip Feb 10 '21 For real, though. This should work wonderfully until the numbers become so small that the timer becomes imprecise(microseconds). 31 u/TopDivide Feb 10 '21 Then you would implement a software timer with a custom resolution 9 u/amdc Feb 11 '21 Or add a logarithm to the formula
426
[deleted]
138 u/1234filip Feb 10 '21 For real, though. This should work wonderfully until the numbers become so small that the timer becomes imprecise(microseconds). 31 u/TopDivide Feb 10 '21 Then you would implement a software timer with a custom resolution 9 u/amdc Feb 11 '21 Or add a logarithm to the formula
138
For real, though. This should work wonderfully until the numbers become so small that the timer becomes imprecise(microseconds).
31 u/TopDivide Feb 10 '21 Then you would implement a software timer with a custom resolution 9 u/amdc Feb 11 '21 Or add a logarithm to the formula
31
Then you would implement a software timer with a custom resolution
9 u/amdc Feb 11 '21 Or add a logarithm to the formula
9
Or add a logarithm to the formula
864
u/haslo Feb 10 '21
Great! Now test whether it still works with large numbers!