Function clock_start
Starts a clock to compute execution time. Set a key if you want to use more than one.
Example:
Located at app/Kernel/Helpers/support_functions.php
clock_start('all'); clock_start('query'); $result = query('SELECT * ...') clock_end('query'); doSomething($result); echo $result; clock_end('all'); $queryTime = clock_time('query'); $totalTime = clock_time('all');
Located at app/Kernel/Helpers/support_functions.php
string |
$key = 'main' |
An optional key to compute overlapping times. |
float
|
The time the clock starts; format: seconds.microseconds |