13 ms·
Why not just run the thing (which takes some small fraction of time), then pad to five seconds, and respond. Since your work will be done in milliseconds, paddi
by renewiltord 6y ago
Why not just run the thing (which takes some small fraction of time), then pad to five seconds, and respond. Since your work will be done in milliseconds, padding to nearest five seconds will remove any noise.
And it's not a thing anyone has a legitimate interest in submitting more than that per second.
- odonnellryan 6y agoAdding five seconds to everything just adds five seconds, it doesn't matter if the difference between the two requests is .01s or 5.01s.
- throwaway894345 6y agoThe parent said "pad to 5 seconds" not "add 5 seconds". Thus everything would be 5 seconds (never 5.01). The difference between a hit and a miss would be exactly 0s. Note that I'm not advocating for or against this solution; rather, clarifying the conversation.
- renewiltord 6y agoPad to, not pad by. I.e. the padding to add is (5 - duration_of_operation) with duration of operation being far lower than 5 s.