next up previous contents
Next: Termination Up: Configuration Previous: System configuration   Contents

Timing

Syntax:
time time
Example:
time 17.5ms
Effect:
Advances the simulation clock to the specified absolute time. Any timers expiring before that time are triggered. It is an error to try to make time go backward.

The time can be specified in seconds (e.g. 5s) or in jiffies (e.g. 0.2j). Seconds and jiffies can be prefixed with m (milli), k (kilo), or M (mega). The time resolution is micro-seconds or micro-jiffies.

The time can be given relative to the current time by prefixing it with a plus sign, e.g. time +5s

Syntax:
every time $[$until time$]$ command
Example:
every 100s send 0x41 0x00 0x00 0x14
Effect:
Executes the specified command immediately, and then repeatedly after the specified interval. Only the commands tc, send, poll, every, and echo can be used with every.

If an end time is given, the every command is not longer executed after this (absolute) time. It is valid to specify an end time before the current time, in which case the every command has no effect. Like as with time, the end time can be specified relative to the current time by prefixing it with a plus sign.


next up previous contents
Next: Termination Up: Configuration Previous: System configuration   Contents
Martin A. Brown 2003-11-06