FracSec.from

Create a FracSec from the given units ("msecs", "usecs", or "hnsecs").

struct FracSec
@safe pure static
from
(
string units
)
(
long value
)
if (
units == "msecs" ||
units == "usecs"
||
units == "hnsecs"
||
units == "nsecs"
)

Parameters

units

The units to create a FracSec from.

value
Type: long

The number of the given units passed the second.

Throws

TimeException if the given value would result in a FracSec greater than or equal to 1 second or less than or equal to -1 seconds.

Suggestion Box / Bug Report