🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.misc
Article #198

Re: clock(3F)

#198
From: Dave Ciemiewicz
Date: Sat, 09 Jan 1993 01:19
21 lines
1312 bytes
In article <C0Gxyw.GK9@cs.psu.edu>, crg@stat.psu.edu (Colin R Goodall) writes:
|> Can someone tell me please how to get millisecond resolution
|> system clock times from a Fortran call?   The Fortran library
|> libU77.a includes only an integer-second resolution function,
|> time (3F).
|> 
|> Thanks, Colin Goodall
|> crg@stat.psu.edu

Write a C function which calls gettimeofday(2) and returns the time at the
resoltion that you need to your Fortran program.  You will need to set the
fast clock on using the ftimer(1) command.  To determine how to call C routines
from Fortran, see the Fortran 77 Programmer's Guide, chapter 3.

-- 

    __   * __   _  __  ___			
   /  \ / / /  / \/  \/   \ 	He was a man like any other man, however, not
  /    /  \/  /  /\  /    /	quite like any other man.
  \___/\__/\_/  /_/ / \__/	
	           *		
Technical Details
Message-ID: <1993Jan9.011949.13565@odin.corp.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!odin!bananapc.csd.sgi.com!ciemo
References: <C0Gxyw.GK9@cs.psu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!odin!bananapc.csd.sgi.com!ciemo
From: ciemo@bananapc.csd.sgi.com (Dave Ciemiewicz)
Newsgroups: comp.sys.sgi.misc
Subject: Re: clock(3F)
Message-ID: <1993Jan9.011949.13565@odin.corp.sgi.com>
Date: 9 Jan 93 01:19:49 GMT
References: <C0Gxyw.GK9@cs.psu.edu>
Sender: news@odin.corp.sgi.com (Net News)
Organization: Silicon Graphics, Customer Support Division
Lines: 21
Nntp-Posting-Host: bananapc.csd.sgi.com