omergertel / pyformance

Performance metrics, based on Coda Hale's Yammer metrics
Other
195 stars 72 forks source link

Don't allow reporting interval to drift #51

Closed dmrlawson closed 6 years ago

dmrlawson commented 6 years ago

The reporter will drift a bit due to time taken to report metrics. This change adds a fixed interval to the time the loop started and sleeps the difference after reporting the metrics.

omergertel commented 6 years ago

Nice! Thanks!