mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
17 lines
288 B
PHP
17 lines
288 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Director\Daemon;
|
|
|
|
class DaemonUtil
|
|
{
|
|
/**
|
|
* @return int
|
|
*/
|
|
public static function timestampWithMilliseconds()
|
|
{
|
|
$mTime = explode(' ', microtime());
|
|
|
|
return (int) round($mTime[0] * 1000) + (int) $mTime[1] * 1000;
|
|
}
|
|
}
|