HEX
Server: Apache
System: Linux pdx1-shared-a2-07 6.6.116-grsec-jammy-dirty #1 SMP Sat Nov 8 00:02:42 UTC 2025 x86_64
User: dh_kieuhb (23365667)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/dh_kieuhb/blwealthmanagement.com/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;
	}
}