summaryrefslogtreecommitdiffstats
path: root/library/Director/Daemon/DaemonUtil.php
blob: c978d11f49891df608326a0c045819e101f9ebb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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;
    }
}