Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 9dc4d5f1e9f1ad47331e8625818aff452b3b9c6b 2 parents 57a56f7 + 7f8a9a3
Romans Malinovskis romaninsh authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 lib/ApiWeb.php
6 lib/ApiWeb.php
@@ -50,7 +50,7 @@ class ApiWeb extends ApiCLI {
50 50 public $start_time=null;
51 51
52 52 function __construct($realm=null,$skin='kt2'){
53   - $this->start_time=microtime();
  53 + $this->start_time=time()+microtime();
54 54
55 55 $this->skin=$skin;
56 56 try {
@@ -70,10 +70,10 @@ function showExecutionTime(){
70 70 $this->addHook('post-js-execute',array($this,'_showExecutionTimeJS'));
71 71 }
72 72 function _showExecutionTime(){
73   - echo 'Took '.(microtime()-$this->start_time).'s';
  73 + echo 'Took '.(time()+microtime()-$this->start_time).'s';
74 74 }
75 75 function _showExecutionTimeJS(){
76   - echo "\n\n/* Took ".(microtime()-$this->start_time).'s */';
  76 + echo "\n\n/* Took ".number_format(time()+microtime()-$this->start_time,5).'s */';
77 77 }
78 78 function initDefaults(){
79 79 parent::initDefaults();

0 comments on commit 9dc4d5f

Please sign in to comment.
Something went wrong with that request. Please try again.