Hi, I'm having trouble using the system_clock intrinsic with g95: it
is only returning count=0. I get the same behavior on Linux x86 and
on Windows x86 under MinGW. Here is my test program:
--------------------------------------------------------------
[sys_clock]$ g95 --version | head -n1
G95 (GCC 4.0.3 (g95 0.92!) May 5 2009)
[sys_clock]$ cat prog.f90
PROGRAM prog
INTEGER :: clock, rate, cmax
CALL SYSTEM_CLOCK(clock,count_rate=rate,count_max=cmax)
PRINT*, 'size of int:', sizeof(clock)
PRINT*, 'count:', clock
PRINT*, 'rate:', rate
PRINT*, 'max:', cmax
END PROGRAM prog
[sys_clock]$ g95 prog.f90
[sys_clock]$ a.out
size of int: 4
count: 0
rate: 10000
max:
2147483647
----------------------------------------------------------------------
Am I doing something wrong here?
Thanks,
John