__setTimerStartBreak
Syntax
__setTimerStartBreak(location,ID)
Parameters
locationA string that defines the code location of the breakpoint, either a valid C-SPY expression whose value evaluates to a valid address, an absolute location, or a source location. For more information about the location types, see Enter Location dialog box.
IDThe Timer number, an integer from 1–16 that identifies the timer that the breakpoint will start.
Return value
Result | Value |
|---|---|
Successful | An unsigned integer uniquely identifying the breakpoint. The same value must be used when you want to clear the breakpoint. |
Unsuccessful |
|
For use with
The C-SPY hardware debugger drivers.
Description
Sets a breakpoint at the specified location. When that breakpoint is triggered, a timer is started that measures the execution time between two execution points.
Example
__var startTimerBp;
__var stopTimerBp;
timerOn()
{
startTimerBp = __setTimerStartBreak
("{C:\\TEMP\\Utilities.c}.23.1", 3);
stopTimerBp = __setTimerStopBreak
("{C:\\temp\\Utilities.c}.30.1", 3);
}
timerOff()
{
__clearBreak(startTimerBp);
__clearBreak(stopTimerBp);
}