home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / wizards / 5677 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 KB

  1. Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!pacbell.com!ames!haven.umd.edu!mimsy!nmrdc1!frmug!cpio1!bernard
  2. From: bernard@cpio1.fr.mugnet.org (Bernard Fouche)
  3. Newsgroups: comp.unix.wizards
  4. Subject: How to avoid calling time(2)
  5. Message-ID: <1993Jan27.195309.15120@cpio1.fr.mugnet.org>
  6. Date: 27 Jan 93 19:53:09 GMT
  7. Sender: bernard@cpio1.fr.mugnet.org (Bernard Fouche)
  8. Organization: CPIO S.A.
  9. Lines: 29
  10.  
  11.  
  12. Hi wizards!
  13.  
  14. I run many applications that need to call very often the time(2)
  15. system call. I do not see how I could design my programs to do without
  16. having to get the result of time(2) very ofen.
  17.  
  18. But I wonder if there is a way (on a 486 running Dell Unix 2.0 at
  19. least) to get time information without having to do a system call each
  20. time.
  21.  
  22. For instance, does someone know if I can get a pointer toward the
  23. value of time that is stored somewhere in the system ? Of course this
  24. should work with processes having no suid bit set nor running as root
  25. and files like /unix or /dev/kmem must stay to be not readable by
  26. anyone :-)
  27.  
  28. Or am I going the wrong way because the time(2) system call is so
  29. light that I should try to find other means to reduce the impact of my
  30. applications on the system ?
  31.  
  32. Any comment or hint welcome !
  33.  
  34.     Thank you !
  35. -- 
  36. --------------------------------------------------------------------------
  37. Bernard Fouche  VOX   : +(33) (1) 48.04.56.30  FAX :  (33) (1) 48.04.98.95
  38. Email : bernard@cpio1.fr.mugnet.org
  39. Postal Mail : CPIO S.A., 13-15 Rue de la Verrerie, 75004 Paris, France
  40.