Index: trunk/extensions/LocalisationUpdate/update.php |
— | — | @@ -11,10 +11,7 @@ |
12 | 12 | if ( $argc > 1 && $argv[0] == "verbose" ) |
13 | 13 | $verbose = true; |
14 | 14 | |
15 | | -$mtime = microtime(); |
16 | | -$mtime = explode( " ", $mtime ); |
17 | | -$mtime = $mtime[1] + $mtime[0]; |
18 | | -$starttime = $mtime; |
| 15 | +$starttime = microtime( true ); |
19 | 16 | |
20 | 17 | // Prevent the script from timing out |
21 | 18 | set_time_limit( 0 ); |
— | — | @@ -22,9 +19,6 @@ |
23 | 20 | |
24 | 21 | LocalisationUpdate::updateMessages( $verbose ); |
25 | 22 | |
26 | | -$mtime = microtime(); |
27 | | -$mtime = explode( " ", $mtime ); |
28 | | -$mtime = $mtime[1] + $mtime[0]; |
29 | | -$endtime = $mtime; |
| 23 | +$endtime = microtime( true ); |
30 | 24 | $totaltime = ( $endtime - $starttime ); |
31 | 25 | print "All done in " . $totaltime . " seconds\n"; |