Changeset 4174 for trunk/wp-settings.php
- Timestamp:
- 09/07/2006 11:26:52 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-settings.php
r4160 r4174 59 59 $timestart = $mtime; 60 60 return true; 61 } 62 63 function timer_stop($display = 0, $precision = 3) { //if called like timer_stop(1), will echo $timetotal 64 global $timestart, $timeend; 65 $mtime = microtime(); 66 $mtime = explode(' ',$mtime); 67 $mtime = $mtime[1] + $mtime[0]; 68 $timeend = $mtime; 69 $timetotal = $timeend-$timestart; 70 if ( $display ) 71 echo number_format($timetotal,$precision); 72 return $timetotal; 61 73 } 62 74 timer_start();
Note: See TracChangeset
for help on using the changeset viewer.