定制 astatroth/laravel-timer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

astatroth/laravel-timer

Composer 安装命令:

composer require astatroth/laravel-timer

包简介

A small tool to measure operations execution time.

README 文档

README

Total Downloads

A small tool to measure operations execution time.

Installation

composer require "astatroth/laravel-timer":"dev-master"

Add the service provider ...

Astatroth\LaravelTimer\LaravelTimerServiceProvider::class,

or if you use Lumen

Astatroth\LaravelTimer\LumenTimerServiceProvider::class,

... and facade:

'Timer' => Astatroth\LaravelTimer\Timer::class,

Usage

Just start the Timer with

Timer::timerStart('timer-name');

If you start and stop the same timer multiple times, the measured intervals will be accumulated.

Reading specified timer current time:

Timer::timerRead('timer-name);

Stop the timer:

Timer::timerStop('timer-name');

Have fun! ;)

统计信息

  • 总下载量: 23.75k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-30