25 long sgi_ticks_per_sec_() {
27 clock_getres( CLOCK_SGI_CYCLE, &
t );
34 if(
delta_t==0 ) (void) sgi_ticks_per_sec_();
35 clock_gettime( CLOCK_SGI_CYCLE, &
t );
36 return ( (
long)
t.tv_sec*1000000000+(
long)
t.tv_nsec )/
delta_t;
39 long sgi_max_tick_() {
40 #include <sys/syssgi.h> 41 return syssgi(SGI_CYCLECNTR_SIZE);
48 printf(
"ticks per second=%li\n", sgi_ticks_per_sec_() );
49 printf(
"delta_t=%li\n",
delta_t );
50 printf(
"max tick=%li\n", sgi_max_tick_() );
52 printf(
"ticks per second=%i\n", CLOCKS_PER_SEC );
integer, parameter, public long
real(r8), dimension(cast_m, cast_n) t
real(8), parameter delta_t