<?php

namespace Planaday\Utility\Timer;

use Planaday\Utility\DateAndTimeUtility;

class TimerFactory {
	public function __construct(
		protected DateAndTimeUtility $dateAndTimeUtility
	) {}

	public function getTimer(string $name, ?float $overrideStartTime = null):Timer {
		return new Timer($this->dateAndTimeUtility, $name, $overrideStartTime);
	}
}