IntervalTimer::__construct

Create a new interval timer

public function __construct(
  double $interval,
  double $initial,
  mixed $callback,
);

Parameters

  • double $interval - frequency in seconds of timer interrupts.
  • double $initial
  • mixed $callback