Ensure the last step to a stage is logged appropriately

This commit is contained in:
Daniel Bachhuber 2016-09-08 17:42:58 -07:00
parent 3a0b093984
commit b31f5c39fa
3 changed files with 21 additions and 0 deletions

View file

@ -43,6 +43,13 @@ class Logger {
$this->cache_miss_offset = ! empty( $wp_object_cache->cache_misses ) ? $wp_object_cache->cache_misses : 0;
}
/**
* Whether or not the logger is running
*/
public function running() {
return ! is_null( $this->start_time );
}
/**
* Stop this logger
*/