xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

SecondsCpu()

Returns the CPU time used by the current process.

Syntax

SecondsCpu( [<nWhichTime>] ) --> nSeconds

Arguments

<nWhichTime>
This is a numeric value used to determine the CPU usage time of the current process. The following values are supported:

Values for <nWhichTime>
ValueDescription
1User CPU time of the current process
2System CPU time on behalf of the current process
3Sum of 1 and 2 (default)
11Sum of the user CPU time of the current + child process
12Sum of the system CPU time of the current + child process
13Sum of 11 and 12

Return

The function returns the requested usage time in seconds as a numeric value.

Info

See also:HB_Clocks2Secs(), ElapTime(), Seconds()
Category: Date and time , xHarbour extensions
Source:rtl\seconds.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe