/usr/share/IlohaMail/include/stopwatch.inc is in ilohamail 0.8.14-0rc3sid6.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | <?php
class stopwatch{
var $entries;
function stopwatch(){
$this->entries = array();
}
function register($message){
$entry_a["time"] = microtime();
$entry_a["message"] = $message;
array_push($this->entries, $entry_a);
}
function dump(){
reset($this->entries);
while ( list($k, $blah) = each($this->entries) ){
$a = $this->entries[$k];
$str = $a["time"];
$space_pos = strpos($str, " ");
$seconds = substr($str, $space_pos+1);
$microsec = substr($str, 1, $space_pos - 2);
echo $seconds.$microsec.":".$a["message"]."\n";
}
}
}
?>
|