File "class-timer.php"

Full Path: /home/digimqhe/flashdigi.uk/wp-smushit/core/class-timer.php
File size: 279 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Smush\Core;

class Timer {
	/**
	 * @var float
	 */
	private $time_start;

	public function start() {
		$this->time_start = microtime( true );
	}

	public function end() {
		$time_end = microtime( true );
		return round( $time_end - $this->time_start, 2 );
	}
}