承接 bita-sk/wall-timer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

bita-sk/wall-timer

Composer 安装命令:

composer require bita-sk/wall-timer

包简介

Simple library for count script execution time

README 文档

README

Script run time measurement library

  • support three languages for output text czech, english, german, russian
  • include unit tests
  • the option to set the output display
  • include autoload class for non-use composer

Default

  • language -> english
  • echo output -> true
  • time output -> seconds

Usage

  /* Init wall timer */
  $wallTimer = new WallTimer();
  
  /* Begin measuring */
  $wallTimer->start()
  
  /* Script to be measured  */
  sleep(2);
  
 /* End measuring */
  $wallTimer->end()
Output:

Your script running 2 seconds

Result time of measuring
 // Time output in minutes
 $wall->getTotalTime();
Change language
 // Set czech language
 $wall->setOutputLanguage("cs");
  • ru - for russian
  • cs - for czech
  • en - for english
Result rounding
 $wall->setOutputPrecision(10);
Output:

Your script running 2.0001149178 seconds

Change time output
// Time output in minutes
 $wall->setTimeOutput("m");
  • s - for seconds
  • m - for minutes
  • h - for hours
Turn off echo output
// Time output in minutes
 $wall->setAllowEchoOutput(false);

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固