home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / misc / 216 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.2 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!bananapc.csd.sgi.com!ciemo
  2. From: ciemo@bananapc.csd.sgi.com (Dave Ciemiewicz)
  3. Newsgroups: comp.sys.sgi.misc
  4. Subject: Re: clock(3F)
  5. Message-ID: <1993Jan9.011949.13565@odin.corp.sgi.com>
  6. Date: 9 Jan 93 01:19:49 GMT
  7. References: <C0Gxyw.GK9@cs.psu.edu>
  8. Sender: news@odin.corp.sgi.com (Net News)
  9. Organization: Silicon Graphics, Customer Support Division
  10. Lines: 21
  11. Nntp-Posting-Host: bananapc.csd.sgi.com
  12.  
  13. In article <C0Gxyw.GK9@cs.psu.edu>, crg@stat.psu.edu (Colin R Goodall) writes:
  14. |> Can someone tell me please how to get millisecond resolution
  15. |> system clock times from a Fortran call?   The Fortran library
  16. |> libU77.a includes only an integer-second resolution function,
  17. |> time (3F).
  18. |> 
  19. |> Thanks, Colin Goodall
  20. |> crg@stat.psu.edu
  21.  
  22. Write a C function which calls gettimeofday(2) and returns the time at the
  23. resoltion that you need to your Fortran program.  You will need to set the
  24. fast clock on using the ftimer(1) command.  To determine how to call C routines
  25. from Fortran, see the Fortran 77 Programmer's Guide, chapter 3.
  26.  
  27. -- 
  28.  
  29.     __   * __   _  __  ___            
  30.    /  \ / / /  / \/  \/   \     He was a man like any other man, however, not
  31.   /    /  \/  /  /\  /    /    quite like any other man.
  32.   \___/\__/\_/  /_/ / \__/    
  33.                *        
  34.