root/dev/common/includes/class.profiler.php

Revision 190, 374 bytes (checked in by exi, 16 years ago)

This is a big update...
Moved all admin scripts to common/admin.
Moved all includes and classes to common/includes.
Edited all include-paths to reflect the movement.
Fixed a bug with the session system allowing every registered user to access admin pages.
Replaced calls to date() to use a wrapper so gmdate can be used.
Replaced some calls to $config with calls to the static object.
Fixed a big which caused the portrait_grab to not download a new picute.
Added a classified-state to kills.
Removed the sync_server server script in this tree.
Added code to help modules find the includes to index.php.

Line 
1<?php
2class Profiler
3{
4    function Profiler()
5    {
6    }
7
8    function start()
9    {
10        $this->starttime_ = strtok(microtime(), ' ') + strtok('');
11    }
12
13    function stop()
14    {
15        $this->stoptime_ = strtok(microtime(), ' ') + strtok('');
16    }
17
18    function getTime()
19    {
20        return $this->stoptime_ - $this->starttime_;
21    }
22}
23?>
Note: See TracBrowser for help on using the browser.