10 ms·
If the function still runs in a time evenly divisible by 50ms, the price will remain the same.
by cthalupa 6y ago
If the function still runs in a time evenly divisible by 50ms, the price will remain the same.
- happytoexplain 6y agoMore specifically, if it stops anywhere between 49ms and 50ms in each 50ms chunk. So the price would be the same in 2% of executions, I suppose. Edit: Assuming even distribution of run times within each 50ms chunk - I guess maybe that's a bad assumption.
- paxys 6y agoThat assumes the runtime is evenly distributed, which is probably not the case. But still yeah, there will be some functions that end exactly in multiples of 50ms.
- nrmitchi 6y agoYa, you're right. I interpretted the statement as "for some use cases the price might go up", which was a poor interpretation.
- tclancy 6y agoShout out to the person running `sleep(0.005)` just to make the point.