Clicky

Fortran Wiki
system_clock (Rev #2, changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #1 to #2: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

Description

Determines the count of milliseconds of wall clock time since the Epoch (00:00:00 UTC, January 1, 1970) modulo count_max, count_rate determines the number of clock ticks per second. count_rate and count_max are constant and specific to gfortran.

If there is no clock, count is set to -huge(count), and count_rate and count_max are set to zero

Standard

(削除) Fortran 95 and later (削除ここまで)(追記) Fortran 95 (追記ここまで)(追記) and later (追記ここまで)

Class

Subroutine

Syntax

call system_clock([count, count_rate, count_max])

Arguments

  • count - (Optional) shall be a scalar of type default integer with intent(out).
  • count_rate - (Optional) shall be a scalar of type default integer with intent(out).
  • count_max - (Optional) shall be a scalar of type default integer with intent(out).

Example

program test_system_clock
 integer :: count, count_rate, count_max
 call system_clock(count, count_rate, count_max)
 write(*,*) count, count_rate, count_max
end program

See also

date_and_time, cpu_time

category: (削除) Intrinsics (削除ここまで)(追記) intrinsics (追記ここまで)

Revision from April 30, 2009 17:33:58 by Jason Blevins
Forward in time (2 more) | Back in time (1 more) | See current | Hide changes | History | Rollback | View: Source | Linked from: Intrinsic procedures, cpu_time, date_and_time

AltStyle によって変換されたページ (->オリジナル) /