Skip to content

Commit

Permalink
README.md: comment about the limit of system_clock()
Browse files Browse the repository at this point in the history
  • Loading branch information
vmagnin committed Oct 29, 2021
1 parent 748d6c7 commit 4b25c21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ https://github.com/fortran-lang/stdlib/blob/master/STYLE_GUIDE.md
* Introduced by Fortran 90:
* [SYSTEM_CLOCK()](https://gcc.gnu.org/onlinedocs/gfortran/SYSTEM_005fCLOCK.html)
* My first idea was to use `cpu_time()` but I soon realised that the process was idle while the `read(*, '(a1)') key` was waiting for an input! That’s why I finally used `system_clock()`.
* A 64 bits integer can go up to 2**63-1 = +9223372036854775807. Even if the clock resolution is nanosecond, we could count 9223372036 seconds ~ 106751 days ~ 292 years.

* Introduced by Fortran 2003:
* [COMMAND_ARGUMENT_COUNT()](https://gcc.gnu.org/onlinedocs/gfortran/COMMAND_005fARGUMENT_005fCOUNT.html)
Expand Down

0 comments on commit 4b25c21

Please sign in to comment.