1 | <?php |
||
15 | class Execution |
||
16 | { |
||
17 | /** |
||
18 | * Define o tempo de inciação de execução nesta variável |
||
19 | */ |
||
20 | private static $time; |
||
21 | |||
22 | /** |
||
23 | * Procedimento responsável por calcular o tempo incial da execução |
||
24 | */ |
||
25 | final public static function start() |
||
29 | |||
30 | /** |
||
31 | * @return mixed |
||
32 | */ |
||
33 | final public function getTime() |
||
37 | |||
38 | /** |
||
39 | * Calcula a variação do tempo (Tempo final - Tempo inical) da execução e em seguida |
||
40 | * formata o número para 6 digitos após a vírgula. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | final public static function end() |
||
52 | } |
||
53 |