PHP code example of arthur-rmd / time-exec

1. Go to this page and download the library: Download arthur-rmd/time-exec 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/ */

    

arthur-rmd / time-exec example snippets




TimeExec::start();

TimeExec::stop();

TimeExec::event();

TimeExec::event(__LINE__);
TimeExec::stop(__LINE__);

TimeExect::start();
//Code
TimeExect::event(__LINE__); // 1er Event => ligne 17
//Code
TimeExect::event(__LINE__); // 2e Event => ligne 19
//Code
TimeExect::stop(__LINE__); // Stop => ligne 21

TimeExect::func( function() {
	// Code a tester
};

TimeExect::func( function() {
	// Code a tester
	TimeExec::event();
	// Code a tester
};