Skip to content
Tom Barbette edited this page Oct 3, 2018 · 2 revisions

TimerTest Element Documentation

NAME

TimerTest — Click element; runs regression tests for Timer

SYNOPSIS

TimerTest([keywords])

Ports: none

DESCRIPTION

Without other arguments, TimerTest runs regression tests for Click's Timer class at initialization time.

TimerTest includes a timer which prints a message when scheduled. This timer is controlled by the DELAY and/or SCHEDULED keyword arguments and several handlers.

TimerTest does not route packets.

Keyword arguments are:

  • DELAY — Timestamp. If set, TimerTest schedules a timer starting DELAY seconds in the future. On expiry, a message such as "1000000000.010000: t1 :: TimerTest fired" is printed to standard error.
  • BENCHMARK — Integer. If set to a positive number, then TimerTest runs a timer manipulation benchmark at installation time involving BENCHMARK total timers. Default is 0 (don't benchmark).

ELEMENT HANDLERS

  • scheduled (read/write) — Boolean. Returns whether the TimerTest's timer is scheduled.
  • expiry (read-only) — Timestamp. Returns the expiration time for the TimerTest's timer, if any.
  • schedule_after (write-only) — Schedule the TimerTest's timer to fire after a given time.
  • unschedule (write-only) — Unschedule the TimerTest's timer.

Generated by click-elem2man from ../elements/test/timertest.hh:8 on 2018/10/03.

Clone this wiki locally