Home Reference Source Repository

Variable

Static Public Summary
public

bignames(timeMicro: number, incrementNames: object | function | undefined): string: *

Formats microseconds into strings that look like: 1 day 3 hours 7 minutes 28 seconds 500 milliseconds 324 microseconds

public

formatmicro(timeMicro: number, incrementNames: object | function | undefined): string: *

Formats microseconds into strings that look like: 1 d 3 h 7 m 28 s 500 ms 324 µs

public

onlytwo(timeMicro: number, incrementNames: object | function | undefined): string: *

Same as <span><a href="variable/index.html#static-variable-formatmicro">formatmicro</a></span>, except it only returns the first two non-zero values.

Static Public

public bignames(timeMicro: number, incrementNames: object | function | undefined): string: * source

import {bignames} from 'formatmicro/src/index.js'

Formats microseconds into strings that look like: 1 day 3 hours 7 minutes 28 seconds 500 milliseconds 324 microseconds

Return:

string

Throw:

Error

If either argument isn't the correct type

public formatmicro(timeMicro: number, incrementNames: object | function | undefined): string: * source

import {formatmicro} from 'formatmicro/src/index.js'

Formats microseconds into strings that look like: 1 d 3 h 7 m 28 s 500 ms 324 µs

Return:

string

Throw:

Error

If either argument isn't the correct type

public onlytwo(timeMicro: number, incrementNames: object | function | undefined): string: * source

import {onlytwo} from 'formatmicro/src/index.js'

Same as <span><a href="variable/index.html#static-variable-formatmicro">formatmicro</a></span>, except it only returns the first two non-zero values.

Return:

string

Throw:

Error

If either argument isn't the correct type