10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3F Functions and VAX SubroutinesSynopsisreal function etime(tarray)real function dtime(tarray)real tarray(2)Descriptionetime returns the total processor runtime in seconds for the calling process.dtime (delta time) returns the processor time since the previous call to dtime. <strong>The</strong> first time it iscalled, it returns the processor time since the start of execution.Both functions place values in the argument tarray: user time in the first element and system timein the second element. <strong>The</strong> return value is the sum of these two times.9.1.11. exitTerminate program with status.Synopsissubroutine exit(s)integer sDescriptionexit flushes and closes all of the program's files, and returns the value of s to the parent process.9.1.12. fdateReturn date and time in ASCII form.Synopsischaracter*(*) function fdate()Descriptionfdate returns the current date and time as a character string. Neither newline nor NULL will beincluded.9.1.13. fgetcGet character from a logical unit.Synopsisinteger function fgetc(lu, ch)integer lucharacter*(*) ch<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 193

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

Saved successfully!

Ooh no, something went wrong!