- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
i have used second() in my fortran code. when i am compiling the same code using intel compiler, i am not able to get the right value of system time. but the same works fine when compiled with GNU compiler. please let me know what is missing or an equivalent function for getting a system time.
thanks in advance.
-mausmi
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The standard Fortran intrinsic subroutine cpu_time() has the same function as the legacy extension second():
http://gcc.gnu.org/onlinedocs/gfortran/SECOND.html
It's not intended to give system time; if you really mean that, you would use system_clock, or, with -openmp, omp_get_wtime().
http://gcc.gnu.org/onlinedocs/gfortran/SECOND.html
It's not intended to give system time; if you really mean that, you would use system_clock, or, with -openmp, omp_get_wtime().

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page