Overview

Namespaces

  • PHP
  • XSLTBenchmarking
    • Reports
    • RunnerConsole
    • TestsGenerator
    • TestsRunner

Classes

  • DriversContainer
  • Factory
  • Microtime
  • Printer

Exceptions

  • CollisionException
  • Exception
  • GenerateTemplateException
  • GenerateXmlException
  • InvalidArgumentException
  • InvalidStateException
  • LongLoopException
  • UnknownMethodException
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Microtime

Static class for working with microtime with sufficient precision

Namespace: XSLTBenchmarking
Author: Viktor Mašíček <viktor@masicek.net>
Located at Microtime.php
Methods summary
public static string
# now( integer $scale = XSLTBenchmarking\Microtime::SCALE )
Get current time stamp with sufficient precision

Get current time stamp with sufficient precision

Parameters

$scale
integer
Scale of time decimal precision

Returns

string
public static string
# humanReadable( string $microtime )
Return microtime in humanreadable form

Return microtime in humanreadable form

Parameters

$microtime
string
Timestamp returned by another function in this class

Returns

string
public static string
# substract( string $leftOperand, string $rightOperand, integer $scale = XSLTBenchmarking\Microtime::SCALE )
Get substrast of time stamps with sufficient precision

Get substrast of time stamps with sufficient precision

Parameters

$leftOperand
string
Left operand
$rightOperand
string
Right operand
$scale
integer
Scale of time decimal precision

Returns

string
= $leftOperand - $rightOperand
public static string
# sum( array $operands, integer $scale = XSLTBenchmarking\Microtime::SCALE )
Sum all arguments

Sum all arguments

Parameters

$operands
array
List of operands for sum
$scale
integer
Scale of time decimal precision

Returns

string
public static string
# divide( string $leftOperand, string $rightOperand, integer $scale = XSLTBenchmarking\Microtime::SCALE )
Get division of time stamps with sufficient precision

Get division of time stamps with sufficient precision

Parameters

$leftOperand
string
Left operand
$rightOperand
string
Right operand
$scale
integer
Scale of time decimal precision

Returns

string
= $leftOperand / $rightOperand
Constants summary
integer SCALE 6
#
Default scale of time decimal precision

Default scale of time decimal precision

XSTL Benchmarking API documentation generated by ApiGen.
Generated using the TokenReflection library.