WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/04/2004 08:03:52 AM (17 years ago)
Author:
saxmatt
Message:

Code cleanup and some fixes from the WP Japan folks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r1733 r1734  
    560560// ( or just any time between timer_start() and timer_stop() )
    561561
    562 function timer_start() {
    563     global $timestart;
    564     $mtime = microtime();
    565     $mtime = explode(' ',$mtime);
    566     $mtime = $mtime[1] + $mtime[0];
    567     $timestart = $mtime;
    568     return true;
    569 }
    570 
    571562function timer_stop($display = 0, $precision = 3) { //if called like timer_stop(1), will echo $timetotal
    572563    global $timestart, $timeend;
Note: See TracChangeset for help on using the changeset viewer.