HRTime
in package
FinalYes
Tags
Table of Contents
Properties
- $nanoseconds : int
- $seconds : int
Methods
- duration() : Duration
- fromSecondsAndNanoseconds() : self
- nanoseconds() : int
- seconds() : int
- __construct() : mixed
- ensureNanoSecondsInRange() : void
- ensureNotNegative() : void
Properties
$nanoseconds read-only
private
int
$nanoseconds
$seconds read-only
private
int
$seconds
Methods
duration()
public
duration(self $start) : Duration
Parameters
- $start : self
Return values
DurationfromSecondsAndNanoseconds()
public
static fromSecondsAndNanoseconds(int $seconds, int $nanoseconds) : self
Parameters
- $seconds : int
- $nanoseconds : int
Tags
Return values
selfnanoseconds()
public
nanoseconds() : int
Return values
intseconds()
public
seconds() : int
Return values
int__construct()
private
__construct(int $seconds, int $nanoseconds) : mixed
Parameters
- $seconds : int
- $nanoseconds : int
Tags
ensureNanoSecondsInRange()
private
ensureNanoSecondsInRange(int $nanoseconds) : void
Parameters
- $nanoseconds : int
Tags
ensureNotNegative()
private
ensureNotNegative(int $value, string $type) : void
Parameters
- $value : int
- $type : string