function uptime($f3) { $this->sysinfo = \SysInfo::instance(); $values = array(); $values['uptime'] = $this->sysinfo->uptime; echo json_encode($values); }
/** * The function used to set and/or retrieve the current instance of this class. * * @return object $instance A reference to an instance of this class. */ public static function get_instance() { if (null == self::$instance) { self::$instance = new self(); } // end if return self::$instance; }