IPowerThread.TimeUser method

Retrieves the amount of time this thread has spent in user mode, and returns it as a Quad Integer value. The internal format of the value is that of a FILETIME structure, so you can use the PowerTime object to convert it to a human readable format.

Restrictions

Functions from the Thread Code Group and THREAD OBJECTS may co-exist in the same application. However, it is important that they not be intermixed when you reference one particular thread.

See also

PowerTime, THREAD Code Group

Example

CLASS MyClass

INSTANCE ThreadParam as DataFace

THREAD METHOD MAIN() AS LONG

x& = ThreadParam.GetANumber()

MsgBox DEC$(x&)

END METHOD

INTERFACE MyFace

INHERIT IPOWERTHREAD

METHOD abc

END METHOD

END INTERFACE

END CLASS

CLASS DataClass

INTERFACE DataFace

INHERIT DUAL

METHOD GetANumber() AS LONG

METHOD = 77

END METHOD

END INTERFACE

END CLASS

FUNCTION PBMain()

LOCAL xx AS MyFace

LET xx = CLASS "MyClass"

LOCAL oo AS DataFace

LET oo = CLASS "DataClass"

xx.launch(oo)

xx.join(xx, 0)

END FUNCTION