HEX
Server: Apache
System: Linux speed2host.es 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cuisinelectro.com_7628cp5v3wv (10000)
PHP: 8.2.31
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/cuisinelectro.com/httpdocs/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;
	}
}