- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
Recently I migrated my Visual Fortran program into our Linux server. In Windows, I use CTIME(TIME()) to get the current date and time. However it is not working in Linux since I cann't call the statement "USE DFPORT" at the beginning. I just want to record how much time used for the computation when the program runs at Linux. Any suggestions?
Thanks!
Roy
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why not use the CPU_TIME intrinsic? Or SYSTEM_CLOCK if you want wall-clock time.
You can USE IFPORT, however.
You can USE IFPORT, however.
Message Edited by Steve_Lionel on 01-19-2006 02:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regarding the code, how do I write it in my program to get the time?
Meanwhile I changed "USE DFPORT" to "USE IFPORT", it still gave me error messag during the compiling. I am not quite understand whether I can still use "USE XXX module" in Linux like I did in Windows.
Thanks!
Roy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I figured it out how to write it in the program to get the time.
I still have that question for "USE XXXmodule " in Linux.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use some of the modules. IFPORT is provided and should be visible to the compiler if you have set up the environment with the "source" command in the usual way.
See the Language Reference Manual for information on the Fortran standard routines CPU_TIME and SYSTEM_CLOCK.
See the Language Reference Manual for information on the Fortran standard routines CPU_TIME and SYSTEM_CLOCK.
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