Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

2 Intel Fortran Libraries ReferenceGETTEXTWINDOWGraphics Subroutine: Finds the boundaries of the current text window. This subroutine is onlyavailable on Windows* systems.Module: USE IFQWINSyntaxCALL GETTEXTWINDOW (r1, c1, r2, c2)r1, c1(Output) INTEGER(2). Row and column coordinates for upper-left corner of the text window.r2, c2(Output) INTEGER(2). Row and column coordinates for lower-right corner of the text window.Output from OUTTEXT and WRITE is limited to the text window. By default, this is the entirewindow, unless the text window is redefined by SETTEXTWINDOW.The window defined by SETTEXTWINDOW has no effect on output from OUTGTEXT.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “GETTEXTPOSITION”, “OUTTEXT”, “SCROLLTEXTWINDOW”,“SETTEXTPOSITION”, “SETTEXTWINDOW”, “WRAPON”, the WRITE statement in theLanguage ReferenceExample! Build as QuickWin or Standard GraphicsUSE IFQWININTEGER(2) top, left, bottom, rightDO i = 1, 10WRITE(*,*) "Hello, world"END DO! Save text window positionCALL GETTEXTWINDOW (top, left, bottom, right)! Scroll text window down seven linesCALL SCROLLTEXTWINDOW (INT2(-7))! Restore text windowCALL SETTEXTWINDOW (top, left, bottom, right)WRITE(*,*) "At beginning again"END2-148

Descriptions of the Library Routines 2GETTIMPortability Subroutine: Returns the time.Module: USE IFPORTSyntaxCALL GETTIM (ihr, imin, isec, i100th)ihr(Output) INTEGER(4) or INTEGER(2). Hour (0-23).imin(Output) INTEGER(4) or INTEGER(2). Minute (0-59).isec(Output) INTEGER(4) or INTEGER(2). Second (0-59).i100th(Output) INTEGER(4) or INTEGER(2). Hundredths of a second (0-99).CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS DLL LIBSee Also: “GETDAT”, “SETDAT”, “SETTIM”ExampleSee the example in “GETDAT”.GETTIMEOFDAYPortability Subroutine: Returns seconds and microseconds since 00:00 Jan 1, 1970.Module: USE IFPORTSyntaxCALL GETTIMEOFDAY (ret, err)ret(Output) INTEGER(4). One-dimensional array with 2 elements used to contain numeric time data.The elements of ret are returned as follows:Elementret(1)ret(2)ValueSecondsMicroseconds2-149

Descriptions of the Library Routines 2GETTIMPortability Subroutine: Returns the time.Module: USE IFPORTSyntaxCALL GETTIM (ihr, imin, isec, i100th)ihr(Output) INTEGER(4) or INTEGER(2). Hour (0-23).imin(Output) INTEGER(4) or INTEGER(2). Minute (0-59).isec(Output) INTEGER(4) or INTEGER(2). Second (0-59).i100th(Output) INTEGER(4) or INTEGER(2). Hundredths of a second (0-99).CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS DLL LIBSee Also: “GETDAT”, “SETDAT”, “SETTIM”ExampleSee the example in “GETDAT”.GETTIMEOFDAYPortability Subroutine: Returns seconds and microseconds since 00:00 Jan 1, 1970.Module: USE IFPORTSyntaxCALL GETTIMEOFDAY (ret, err)ret(Output) INTEGER(4). One-dimensional array with 2 elements used to contain numeric time data.The elements of ret are returned as follows:Elementret(1)ret(2)ValueSecondsMicroseconds2-149

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

Saved successfully!

Ooh no, something went wrong!