定制 desarrolla2/timer 二次开发

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

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

desarrolla2/timer

最新稳定版本:0.3.0

Composer 安装命令:

composer require desarrolla2/timer

包简介

Provide Timer funcionality

关键字:

README 文档

README

This script works as simple timer control to your app

Build Status

Latest Stable Version Total Downloads

Installation

With Composer

It is best installed it through packagist by including desarrolla2/timer in your project composer.json require:

    "require": {
        // ...
        "desarrolla2/timer":  "*"
    }

Without Composer

You can also download it from [Github] (https://github.com/desarrolla2/Timer), but no autoloader is provided so you'll need to register it with your own PSR-4 compatible autoloader.

Usage

<?php
require __DIR__ . '/../vendor/autoload.php';

use Desarrolla2\Timer\Timer;

$timer = new Timer();

$timer->mark('Starting a mark previous to operations');

foreach ($aLotOfOperations as $operation) {
    $timer->mark('Start operation '.$operation->name);
    
    $operation->doSomething();
    
    $timer->mark('End operation '.$operation->name);
}

$timer->mark('Ended a mark previous to operations');

Formatting

// ..

Contact

You can contact with me on @desarrolla2.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-17