-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Timer: upgrade method, use english term
- Loading branch information
Showing
3 changed files
with
149 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
use Jgauthi\Component\Debug\Timer; | ||
|
||
// In this example, the vendor folder is located in "example/" | ||
require_once __DIR__.'/vendor/autoload.php'; | ||
|
||
// Use timer without set manually outPut method | ||
$timer = Timer::init(false, Timer::EXPORT_FORMAT_COMMENT); | ||
// OR | ||
// $timer = Timer::init(); | ||
// OR | ||
// Timer::init(); // if you don't need the var '$timer' | ||
|
||
|
||
// somecode | ||
// ... | ||
$timer->step('Some code'); | ||
|
||
// The timer will be displayed at footer |
Oops, something went wrong.