dotdecay/time-benchy

Benchmark Tool for measuring execution times

v1.0.1 2023-04-28 11:37 UTC

This package is auto-updated.

Last update: 2025-06-28 16:38:11 UTC


README

Small benchmark tool for measuring execution times.

Usage

$timeBenchy = new TimeBenchy();
$timeBenchy->mark('Start');
// [... some code here ...]
$timeBenchy->mark('After function X');
// [... some code here ...]
$timeBenchy->mark('After Database call');
// [... some code here ...]
$timeBenchy->mark('End');
$timeBenchy->printStats();