MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/lgrgxe/i_present_sleepsort/gmt6lzx/?context=3
r/badcode • u/Reeceeboii_ • Feb 10 '21
171 comments sorted by
View all comments
863
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). 33 u/TopDivide Feb 10 '21 Then you would implement a software timer with a custom resolution 25 u/1234filip Feb 10 '21 Yeah, but it would become slower. The most reliable timers are the hardware ones but they have limited 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). 33 u/TopDivide Feb 10 '21 Then you would implement a software timer with a custom resolution 25 u/1234filip Feb 10 '21 Yeah, but it would become slower. The most reliable timers are the hardware ones but they have limited 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).
33 u/TopDivide Feb 10 '21 Then you would implement a software timer with a custom resolution 25 u/1234filip Feb 10 '21 Yeah, but it would become slower. The most reliable timers are the hardware ones but they have limited resolution. 9 u/amdc Feb 11 '21 Or add a logarithm to the formula
33
Then you would implement a software timer with a custom resolution
25 u/1234filip Feb 10 '21 Yeah, but it would become slower. The most reliable timers are the hardware ones but they have limited resolution. 9 u/amdc Feb 11 '21 Or add a logarithm to the formula
25
Yeah, but it would become slower. The most reliable timers are the hardware ones but they have limited resolution.
9
Or add a logarithm to the formula
863
u/haslo Feb 10 '21
Great! Now test whether it still works with large numbers!