summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-10-04 21:33:03 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-10-05 09:47:44 +0200
commit49c6f7077d558c1e8aa897d1cba2292a8def94d5 (patch)
treeb30bb848395d16e8d6f1f3ad97ed8c0a9b223119 /lib
parentb69e00f96a05e81b3868e1597dd750cead8d1442 (diff)
Define microtime as string
Closes #835 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib')
-rw-r--r--lib/Utility/Time.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Utility/Time.php b/lib/Utility/Time.php
index aee1e6358..276a140cd 100644
--- a/lib/Utility/Time.php
+++ b/lib/Utility/Time.php
@@ -19,9 +19,9 @@ class Time
}
/**
- * @return int the current unix time in miliseconds
+ * @return string the current unix time in miliseconds
*/
- public function getMicroTime(): int
+ public function getMicroTime(): string
{
list($millisecs, $secs) = explode(" ", microtime());
return $secs . substr($millisecs, 2, 6);