libtcspc.Delay

final class libtcspc.Delay(delta, numeric_traits=None)[source]

Bases: Node

Pass-through processor that offsets event abstimes by a constant delta.

Adds delta to the abstime field of every event that has one. Wrap-around is handled correctly even if abstime_type is a signed integer type. Only events with an abstime field may flow through.

Parameters:
  • delta (int or Param[int]) – Offset added to abstime. May be negative.

  • numeric_traits (NumericTraits or None) – Numeric traits specifying the abstime_type. Defaults to NumericTraits().

Notes

Events handled:

  • All event types with an abstime field: pass through with delta added.

  • End of input: pass through.

See also

tcspc::delay()

The underlying C++ factory function.

RebaseAbstime

Shift abstime so the first event is at zero.