*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> f90/clock (3)              
Title
Content
Arch
Section
 

Contents


CLOCK(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     CLOCK - Returns the current time

SYNOPSIS    [Toc]    [Back]

     EXTERNAL CLOCK
     CALL CLOCK	(time)

     INTRINSIC CLOCK    [Toc]    [Back]
     CLOCK ()

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     CF90 and MIPSpro 7	Fortran	90 compiler extension to Fortran 90

DESCRIPTION    [Toc]    [Back]

     CLOCK obtains the current time, in	ASCII hh:mm:ss format, from the
     real-time clock.

     As	an intrinsic function, CLOCK accepts no	arguments.  The	name of
     this intrinsic cannot be passed as	an argument.

     The following argument is valid when CLOCK	is called as an	external
     subprogram:

     time A variable containing	the time in hh:mm:ss format.  The data type
	  of time depends on your platform, as follows:

	  * On UNICOS or UNICOS/mk systems, it must be of type integer,
	    CHARACTER*8, or real.  If time is of type integer or real, it
	    must be of KIND=8.

	  * On IRIX systems, it	must be	declared as type CHARACTER*8.

RETURN VALUES    [Toc]    [Back]

     When called as an intrinsic function, the data type of the	return
     value depends on your platform.  On UNICOS	and UNICOS/mk systems, the
     return value is of	type Boolean.  On IRIX systems,	it is of type
     CHARACTER*8.

NOTES    [Toc]    [Back]

     For Fortran 90 programs, the CLOCK	intrinsic function is outmoded.
     Refer to the Fortran Language Reference Manual, Volume 3, publication
     SR-3905, for information on outmoded features and their preferred
     standard alternatives.

     On	IRIX systems, you can use either the intrinsic function	form or	the
     external subprogram form, but not both, in	a single processing unit
     (PU).

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.




CLOCK(3C)							     CLOCK(3C)


NAME    [Toc]    [Back]

     clock - report CPU	time used

SYNOPSIS    [Toc]    [Back]

     #include <time.h>

     clock_t clock (void);

DESCRIPTION    [Toc]    [Back]

     clock returns the amount of CPU time used since the first call to clock.
     The unit time of clock (microseconds) is indicated	in the macro
     CLOCKS_PER_SEC found in the file <time.h>.	 The time reported is the sum
     of	the user and system times of the calling process and its terminated
     child processes for which it has executed wait(2),	pclose(3S), or
     system(3S).

     The resolution of the clock is 10 milliseconds on IRIS workstations.

SEE ALSO    [Toc]    [Back]

      
      
     times(2), wait(2),	popen(3S), system(3S).

BUGS    [Toc]    [Back]

     The implementation	of clock conflicts with	the definition of the routine
     found in the ANSI C Standard.  The	discrepancy will be transparent,
     however, so long as programs which	adhere to that Standard	use the
     difference	in two invocations of clock for	timing information, as
     recommended by the	Standard.

     The value returned	by clock is defined in microseconds for	compatibility
     with systems that have CPU	clocks with much higher	resolution.  Because
     of	this, the value	returned will wrap around after	accumulating only 2147
     seconds of	CPU time (about	36 minutes).























									Page 1



CLOCK(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     CLOCK - Returns the current time

SYNOPSIS    [Toc]    [Back]

     EXTERNAL CLOCK
     CALL CLOCK	(time)

     INTRINSIC CLOCK    [Toc]    [Back]
     CLOCK ()

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     CF90 and MIPSpro 7	Fortran	90 compiler extension to Fortran 90

DESCRIPTION    [Toc]    [Back]

     CLOCK obtains the current time, in	ASCII hh:mm:ss format, from the
     real-time clock.

     As	an intrinsic function, CLOCK accepts no	arguments.  The	name of
     this intrinsic cannot be passed as	an argument.

     The following argument is valid when CLOCK	is called as an	external
     subprogram:

     time A variable containing	the time in hh:mm:ss format.  The data type
	  of time depends on your platform, as follows:

	  * On UNICOS or UNICOS/mk systems, it must be of type integer,
	    CHARACTER*8, or real.  If time is of type integer or real, it
	    must be of KIND=8.

	  * On IRIX systems, it	must be	declared as type CHARACTER*8.

RETURN VALUES    [Toc]    [Back]

     When called as an intrinsic function, the data type of the	return
     value depends on your platform.  On UNICOS	and UNICOS/mk systems, the
     return value is of	type Boolean.  On IRIX systems,	it is of type
     CHARACTER*8.

NOTES    [Toc]    [Back]

     For Fortran 90 programs, the CLOCK	intrinsic function is outmoded.
     Refer to the Fortran Language Reference Manual, Volume 3, publication
     SR-3905, for information on outmoded features and their preferred
     standard alternatives.

     On	IRIX systems, you can use either the intrinsic function	form or	the
     external subprogram form, but not both, in	a single processing unit
     (PU).

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

[ Back ]
 Similar pages
Name OS Title
adjkerntz FreeBSD adjust local time CMOS clock to reflect time zone changes and keep current timezone offset for the k...
grgbmask IRIX returns the current RGB writemask
getwritemask IRIX returns the current writemask
getlwidth IRIX returns the current linewidth
getlstyle IRIX returns the current linestyle
gethitcode IRIX returns the current hitcode
date IRIX Returns the current date
getmultisample IRIX returns the current multisample mode
getcpos IRIX returns the current character position
getmmode IRIX returns the current matrix mode
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service