12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Descriptions of the Library Routines 2(x1,y1)(x2,y2)ETIMEPortability Function: Returns the elapsed CPU time, in seconds, of the process that calls it.Module: USE IFPORTSyntaxresult = ETIME (array)tarray(Output) REAL(4). Must be a rank one array with two elements:• array(1) – Elapsed user time, which is time spent executing user code. This value includestime running protected Windows subsystem code.• array(2) – Elapsed system time, which is time spent executing privileged code (code in theWindows Executive).Results:The result type is REAL(4). The result is the total CPU time, which is the sum of array(1) andarray(2). If an error occurs, –1 is returned.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: the DATE_AND_TIME and CPU_TIME intrinsic procedures in the Language<strong>Reference</strong>ExampleUSE IFPORTREAL(4) I, TA(2)I = ETIME(TA)write(*,*) 'Program has used', I, 'seconds of CPU time.'write(*,*) ' This includes', TA(1), 'seconds of user time and', &2-75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!