time method

Future time (
  1. String name,
  2. Stopwatch stopwatch,
  3. [double sampleRate]
)

Sends timing metric value to the server.

The client will use stopwatch.elapsedMilliseconds as a value to send.

The sampleRate parameter if provided tells statsd that this counter is being sampled. For instance, value 0.1 means that the counter is sampled every 1/10th of the time.

Implementation

Future time(String name, Stopwatch stopwatch, [double sampleRate]);