function statsd_timer in StatsD 6
Helper function to record the timer in the absence of drupal_static()
Parameters
$time: The time (in milliseconds) the record.
Return value
The current value of $time.
2 calls to statsd_timer()
- statsd_boot in ./
statsd.module - Implementation of hook_boot()
- statsd_exit in ./
statsd.module - Implementation of hook_exit()
File
- ./
statsd.module, line 167
Code
function statsd_timer($time = NULL) {
static $value;
if (!$value) {
$value = $time;
}
return $value;
}