Committed a bunch of live hacks from Wikimedia servers
[lhc/web/wiklou.git] / maintenance / mctest.php
index 7deaa07..316620d 100644 (file)
@@ -5,6 +5,13 @@ $optionsWithArgs = array( 'i' );
 
 require_once('commandLine.inc');
 
+function microtime_float()
+{
+   list($usec, $sec) = explode(" ", microtime());
+   return ((float)$usec + (float)$sec);
+}
+
+
 #$wgDebugLogFile = '/dev/stdout';
 
 if ( isset( $args[0] ) ) {
@@ -49,11 +56,5 @@ foreach ( $wgMemCachedServers as $server ) {
        print "set: $set   incr: $incr   get: $get time: $exectime\n";
 }
 
-function microtime_float()
-{
-   list($usec, $sec) = explode(" ", microtime());
-   return ((float)$usec + (float)$sec);
-}
-
 
 ?>