equal
deleted
inserted
replaced
43 * Returns a floating-point number with the current UNIX timestamp in microseconds. Defined very early because we gotta call it |
43 * Returns a floating-point number with the current UNIX timestamp in microseconds. Defined very early because we gotta call it |
44 * from very early on in the script to measure the starting time of Enano. |
44 * from very early on in the script to measure the starting time of Enano. |
45 * @return float |
45 * @return float |
46 */ |
46 */ |
47 |
47 |
|
48 // First check to see if something already declared this function.... it happens often. |
48 if ( !function_exists('microtime_float') ) |
49 if ( !function_exists('microtime_float') ) |
49 { |
50 { |
50 function microtime_float() |
51 function microtime_float() |
51 { |
52 { |
52 list($usec, $sec) = explode(" ", microtime()); |
53 list($usec, $sec) = explode(" ", microtime()); |
57 // Determine starting time |
58 // Determine starting time |
58 global $_starttime; |
59 global $_starttime; |
59 $_starttime = microtime_float(); |
60 $_starttime = microtime_float(); |
60 |
61 |
61 // Verbose error reporting |
62 // Verbose error reporting |
62 error_reporting(E_ALL); |
63 if ( defined('E_STRICT') ) |
|
64 { |
|
65 // PHP5, PHP6 |
|
66 error_reporting(E_ALL & ~E_STRICT); |
|
67 } |
|
68 else |
|
69 { |
|
70 // PHP4 |
|
71 error_reporting(E_ALL); |
|
72 } |
63 |
73 |
64 // |
74 // |
65 // Determine the location of Enano as an absolute path. |
75 // Determine the location of Enano as an absolute path. |
66 // |
76 // |
67 |
77 |