X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FProfiler.php;h=a98e728928765fe6a61fd30d493ec5abecf20293;hb=b5ad8c3e153976cf3e63753597377f09852d98d7;hp=f4e48504875189e6b738b23c7e35ebf3f59abec2;hpb=1db70b89351b114f85ec38378222984a85154a58;p=friendica.git diff --git a/src/Util/Profiler.php b/src/Util/Profiler.php index f4e4850487..a98e728928 100644 --- a/src/Util/Profiler.php +++ b/src/Util/Profiler.php @@ -152,13 +152,13 @@ class Profiler implements ContainerInterface * Saves a timestamp for a value - f.e. a call * Necessary for profiling Friendica * - * @param int $timestamp the Timestamp + * @param float $timestamp the Timestamp * @param string $value A value to profile * @param string $callstack A callstack string, generated if absent * * @return void */ - public function saveTimestamp(int $timestamp, string $value, string $callstack = '') + public function saveTimestamp(float $timestamp, string $value, string $callstack = '') { if (!$this->enabled) { return; @@ -358,9 +358,9 @@ class Profiler implements ContainerInterface * @throws NotFoundExceptionInterface No entry was found for **this** identifier. * @throws ContainerExceptionInterface Error while retrieving the entry. * - * @return int Entry. + * @return float Entry. */ - public function get(string $id): int + public function get(string $id): float { if (!$this->has($id)) { return 0;