Login   Register  
PHP Classes
elePHPant
Icontem

File: common.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrea Giammarchi  >  SourceMap  >  common.php  >  Download  
File: common.php
Role: Auxiliary script
Content type: text/plain
Description: External Utilities
Class: SourceMap
Tokenize source code in several languages
Author: By
Last change:
Date: 8 years ago
Size: 243 bytes
 

Contents

Class file image Download
<?php
function getTime($startTime null) {
    list(
$usec$sec) = explode(' 'microtime());
    
$newtime = (float)$usec + (float)$sec;
    if(
$startTime !== null)
        
$newtime number_format(($newtime $startTime), 3);
    return 
$newtime;
}
?>