PHP code example of vntrungld / laravel-ticktock
1. Go to this page and download the library: Download vntrungld/laravel-ticktock 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/ */
vntrungld / laravel-ticktock example snippets
tts('test 1')
doSomething();tt('do something');
doSomethingElse();tt('do something else');
tte()
Ticktock::start('test 1')
doSomething(); Ticktock::capture('do something');
doSomethingElse(); Ticktock::capture('do something else');
Ticktock::end()
ttd(); // dump
ttdd(); // dd
ttl(); // log
ttr(); // string
Ticktock::dump(); // dump
Ticktock::dd(); // dd
Ticktock::log(); // log
Ticktock::render(); // string
tts('total');
usleep(10 * 1000);tt('child1');
usleep(20 * 1000);tt('child2');
tts('child3');
usleep(5 * 1000);tt('child3.1');
usleep(7*1000);tt('child3.2');
tts('child3.3');
usleep(3 * 1000);tt('child3.3.1');
usleep(4 * 1000);tt('child3.3.2');
tte();
usleep(18 * 1000);tt('child3.4');
tts('child3.5');
usleep(8 * 1000);tt('child3.5.1');
usleep(9 * 1000);tt('child3.5.2');
tte();
tte();
tts('child4');
usleep(10 * 1000);tt('child4.1');
usleep(15 * 1000);tt('child4.2');
usleep(20 * 1000);tt('child4.3');
tte();
tte();