__functions.php ➔ boottime()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
cc 1
eloc 2
c 2
b 1
f 1
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
use Uptime\System;
4
5
if (!function_exists('boottime')) {
6
    function boottime($system = PHP_OS)
7
    {
8
        return (new System($system))->getBoottime()->getRaw();
9
    }
10
}
11
12
if (!function_exists('uptime')) {
13
    function uptime($system = PHP_OS)
14
    {
15
        return (new System($system))->getUptime()->getRaw();
16
    }
17
}
18