HEX
Server: Apache
System: Linux eisbus 6.8.12-9-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-9 (2025-03-16T19:18Z) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/wordpress/wp-content/plugins/wp-smushit/core/class-timer.php
<?php

namespace Smush\Core;

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

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

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