PHP code example of liuxiaoyucc / timekeeper

1. Go to this page and download the library: Download liuxiaoyucc/timekeeper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

liuxiaoyucc / timekeeper example snippets


composer ��autoload.php; 引入插件
;

// 初始化TimeKeeper
$keeper = new TimeKeeper();

// 开始计时
$keeper->start;

// 结束计时
$keeper->end;

// 输出用时 ms
echo $keeper->consumeTime();