symfony/stopwatch
最新稳定版本:v8.0.0
Composer 安装命令:
composer require symfony/stopwatch
包简介
Provides a way to profile code
README 文档
README
The Stopwatch component provides a way to profile code.
Getting Started
composer require symfony/stopwatch
use Symfony\Component\Stopwatch\Stopwatch; $stopwatch = new Stopwatch(); // optionally group events into sections (e.g. phases of the execution) $stopwatch->openSection(); // starts event named 'eventName' $stopwatch->start('eventName'); // ... run your code here // optionally, start a new "lap" time $stopwatch->lap('foo'); // ... run your code here $event = $stopwatch->stop('eventName'); $stopwatch->stopSection('phase_1');
Resources
统计信息
- 总下载量: 368.99M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2839
- 点击次数: 1
- 依赖项目数: 937
- 推荐数: 62
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04