1eeec557aSGreg Roach<?php 2eeec557aSGreg Roach 3eeec557aSGreg Roach/** 4eeec557aSGreg Roach * webtrees: online genealogy 5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team 6eeec557aSGreg Roach * This program is free software: you can redistribute it and/or modify 7eeec557aSGreg Roach * it under the terms of the GNU General Public License as published by 8eeec557aSGreg Roach * the Free Software Foundation, either version 3 of the License, or 9eeec557aSGreg Roach * (at your option) any later version. 10eeec557aSGreg Roach * This program is distributed in the hope that it will be useful, 11eeec557aSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 12eeec557aSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13eeec557aSGreg Roach * GNU General Public License for more details. 14eeec557aSGreg Roach * You should have received a copy of the GNU General Public License 15eeec557aSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 16eeec557aSGreg Roach */ 17eeec557aSGreg Roach 18eeec557aSGreg Roachdeclare(strict_types=1); 19eeec557aSGreg Roach 20eeec557aSGreg Roachnamespace Fisharebest\Webtrees\Factories; 21eeec557aSGreg Roach 22eeec557aSGreg Roachuse Fisharebest\Webtrees\Contracts\TimeFactoryInterface; 23eeec557aSGreg Roach 24eeec557aSGreg Roachuse function microtime; 25eeec557aSGreg Roach 26eeec557aSGreg Roach/** 27eeec557aSGreg Roach * What is the time? 28eeec557aSGreg Roach */ 29eeec557aSGreg Roachclass TimeFactory implements TimeFactoryInterface 30eeec557aSGreg Roach{ 31eeec557aSGreg Roach /** 32eeec557aSGreg Roach * @return float 33eeec557aSGreg Roach */ 34eeec557aSGreg Roach public function now(): float 35eeec557aSGreg Roach { 36eeec557aSGreg Roach return microtime(true); 37eeec557aSGreg Roach } 38eeec557aSGreg Roach} 39