PHP code example of ciniran / yii-timer

1. Go to this page and download the library: Download ciniran/yii-timer 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/ */

    

ciniran / yii-timer example snippets

`
array (size=4)
  0 => 
    array (size=8)
      '开始时间' => float 1534210404.9903
      '结束时间' => float 1534210405.9917
      '当前用时' => float 1001.335
      '总用时' => float 1001.335
      '开始文件' => string 'C:\workspace\base\frontend\controllers\SiteController.php' (length=57)
      '开始行' => int 75
      '结束文件' => string 'C:\workspace\base\frontend\controllers\SiteController.php' (length=57)
      '结束行' => int 77
  1 => 
    array (size=8)
      '开始时间' => float 1534210404.9903
      '结束时间' => float 1534210406.9925
      '当前用时' => float 1000.781
      '总用时' => float 2002.116
      '开始文件' => string 'C:\workspace\base\frontend\controllers\SiteController.php' (length=57)
      '开始行' => int 77
      '结束文件' => string 'C:\workspace\base\frontend\controllers\SiteController.php' (length=57)
      '结束行' => int 79
  2 => 
    array (size=8)
      '开始时间' => float 1534210404.9903
      '结束时间' => float 1534210407.9931
      '当前用时' => float 1000.64
      '总用时' => float 3002.756
      '开始文件' => string 'C:\workspace\base\frontend\controllers\SiteController.php' (length=57)
      '开始行' => int 79
      '结束文件' => string 'C:\workspace\base\frontend\controllers\SiteController.php' (length=57)
      '结束行' => int 81
  3 => 
    array (size=8)
      '开始时间' => float 1534210404.9903
      '结束时间' => float 1534210408.9936
      '当前用时' => float 1000.526
      '总用时' => float 4003.282
      '开始文件' => string 'C:\workspace\base\frontend\controllers\SiteController.php' (length=57)
      '开始行' => int 81
      '结束文件' => string 'C:\workspace\base\frontend\controllers\SiteController.php' (length=57)
      '结束行' => int 83