Added function wfTime to get current time as a float
authorMr. E23 <e23@users.mediawiki.org>
Wed, 18 Feb 2004 19:06:22 +0000 (19:06 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Wed, 18 Feb 2004 19:06:22 +0000 (19:06 +0000)
includes/GlobalFunctions.php

index c9cbe1b..eac5e55 100644 (file)
@@ -714,6 +714,11 @@ function wfQuotedPrintable( $string, $charset = "" )
        return $out;
 }
 
+function wfTime(){
+       $st = explode( " ", microtime() );
+       return (float)$st[0] + (float)$st[1];
+}
+
 # Changes the first character to an HTML entity
 function wfHtmlEscapeFirst( $text ) {
        $ord = ord($text);