thephpleague / statsd

A library for working with StatsD
MIT License
351 stars 56 forks source link

Add helper methods for starting and stopping a timer. #33

Closed atodd closed 7 years ago

atodd commented 8 years ago

I like using this tool, but did not like adding multiple microtime calls throughout my code base. This allows for cleaner code and less redundancy since calculating the time elapsed is in a central location.

Also cleaned up the doc block for the time and timing methods to show the correct return type.