Permalink
Browse files

Merge branch 'devel' of git://github.com/atk4/atk4 into devel

  • Loading branch information...
2 parents 57a56f7 + 7f8a9a3 commit 9dc4d5f1e9f1ad47331e8625818aff452b3b9c6b @romaninsh romaninsh committed Feb 25, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ApiWeb.php
View
6 lib/ApiWeb.php
@@ -50,7 +50,7 @@ class ApiWeb extends ApiCLI {
public $start_time=null;
function __construct($realm=null,$skin='kt2'){
- $this->start_time=microtime();
+ $this->start_time=time()+microtime();
$this->skin=$skin;
try {
@@ -70,10 +70,10 @@ function showExecutionTime(){
$this->addHook('post-js-execute',array($this,'_showExecutionTimeJS'));
}
function _showExecutionTime(){
- echo 'Took '.(microtime()-$this->start_time).'s';
+ echo 'Took '.(time()+microtime()-$this->start_time).'s';
}
function _showExecutionTimeJS(){
- echo "\n\n/* Took ".(microtime()-$this->start_time).'s */';
+ echo "\n\n/* Took ".number_format(time()+microtime()-$this->start_time,5).'s */';
}
function initDefaults(){
parent::initDefaults();

0 comments on commit 9dc4d5f

Please sign in to comment.