Next: , Previous: , Up: Counter and timer statements   [Contents][Index]


4.6.1 Resetting counters

At the start of an experiment, after all setup processing has completed, all tasks that will eventually log measurement results should zero out their counters:

<reset_stmt> ::= <source_task>
RESETS ITS COUNTERS

Hence, writing ‘ALL TASKS RESET THEIR COUNTERS’ causes each task to reset all of the variables listed in Predeclared variables—with the exception of num_tasks—to zero. Note that ITS and THEIR, like RESET and RESETS, are considered synonyms (see Primitives).

Scott Pakin, pakin@lanl.gov