IntervalTimer::__construct

Create a new interval timer

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

Parameters

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