I'm working on a geocoding piece/sidekiq job in a Rails/Ruby app. So basically when we hit the Google API we sleep for 1 second to avoid the Google API query limit. But I want to push the envelope and speed up processing a bit taking into account AR and SQL time. So I'm trying to figure out how to sleep for 3/4 of a second.
Can I just do sleep .75 or do I need to do some sort of math on sleep like sleep(1.0 / ??).
Not sure if sleep can take a float like .75 or not. Any thoughts on this?