INtime SDK Help
SetRtSystemAccountingMode
INtime SDK v7.1 > About INtime > INtime Kernel > Threads > SetRtSystemAccountingMode

Toggles accounting tracking. You can return accounting information using GetRtThreadAccounting.

BOOLEAN SetRtSystemAccountingMode(
    BOOLEAN bMode    // Flag to turn accounting tracking on or off
);

Parameters

bMode
If TRUE, then system accounting is enabled.
If FALSE, then system accounting is disabled.

Remarks

Since an error is returned if the CPU utilization mode specified in the call is already in effect, first use GetRtThreadAccounting with dwFlags set to 0 (zero) to determine the current mode.

Return Values

TRUE
Success.
FALSE
Failure. To determine the status, call GetLastRtError.

Status

E_OK 0x0000
No exceptional conditions occurred.
E_CONTEXT 0x0005
The tracking mode specified in bMode is already in effect.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib
See Also