Fixed the ElasticSearchPersistWriter

The calculations happen in thousands of fractions of a ms. sleeping for 1 ms allows it to start writing as quickly as possible again instead of having a higher wait time and missing its ability to work.