STS_reset
Application Program Interface
2-419
C Interface
Syntax
STS_reset(sts);
Parameters
STS_Handle sts;
/* statistics object handle */
Return Value
Void
Reentrant
no
Description
STS_reset resets the values stored in an STS object. The Count and
Total fields are set to 0 and the Max field is set to the largest negative
number. STS_reset does not modify the value set by STS_set.
After the Statistics View analysis tool polls statistics data on the target, it
performs STS_reset internally. This keeps the 32-bit total and count
values from wrapping back to 0 on the target. The host accumulates
these values as 64-bit numbers to allow a much larger range than can be
stored on the target.
Example
STS_reset(&sts);
STS_set(&sts, value);
See Also
STS_add
STS_delta
STS_set
TRC_disable
TRC_enable
STS_reset
Reset the values stored in an STS object