pamoja for TypeScript - v0.1.17
    Preparing search index...

    Class DutyCycle

    The split between the time a node works and the time it sleeps.

    Index
    • Creates a duty cycle from the time awake and the time asleep, in microseconds.

      Parameters

      • activeUs: number
      • sleepUs: number

      Returns power.DutyCycle

    • get activeUs(): number

      How long the node stays awake each period, in microseconds.

      Returns number

    • get fraction(): number

      The share of the period spent awake, from 0 through 1.

      Returns number

    • get periodUs(): number

      The whole period, awake plus asleep, in microseconds.

      Returns number

    • get sleepUs(): number

      How long it sleeps each period, in microseconds.

      Returns number