tinybench - v6.0.0-rc.1
    Preparing search index...

    Interface TimestampProvider

    A timestamp provider and its related functions.

    interface TimestampProvider {
        fn: TimestampFn;
        fromMs: (value: number) => TimestampValue;
        name: string & {} | TimestampFns;
        toMs: (value: TimestampValue) => number;
    }
    Index

    Properties

    Properties

    The actual function of the timestamp provider.

    the timestamp value

    fromMs: (value: number) => TimestampValue

    Converts milliseconds to the timestamp value.

    Type Declaration

    name: string & {} | TimestampFns

    The name of the timestamp provider.

    toMs: (value: TimestampValue) => number

    Converts the timestamp value to milliseconds.

    Type Declaration