home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / fj / lan / 297 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.6 KB  |  50 lines

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!rena!specgw!ynozuki
  2. From: ynozuki@spec.co.jp (Yuji NOZUKI)
  3. Newsgroups: fj.lan
  4. Subject: Re: q: traffic on network
  5. Message-ID: <2597@specgw.spec.co.jp>
  6. Date: 22 Jan 93 03:10:58 GMT
  7. References: <1993Jan20.020617.9210@siebold.cc.nagasaki-u.ac.jp>
  8.     <KENJI.93Jan20142418@daemun.rcac.astem.or.jp>
  9.     <FUJIWARA.93Jan21145449@oscar13.oscar.info.waseda.ac.jp>
  10.     <YAMAGATA.93Jan21202350@tithp3.phys.titech.ac.jp>
  11. Sender: ynozuki@specgw.spec.co.jp
  12. Distribution: fj
  13. Organization: System Planning and Engineering Corp., Tokyo, Japan
  14. Lines: 34
  15.  
  16. $@Ln7n!w#S#P#E#C$G$9(J.
  17.  
  18. fj.lan $@$N(J <YAMAGATA.93Jan21202350@tithp3.phys.titech.ac.jp>$@$N5-;v$G(J
  19. 1993$@G/(J01$@7n(J21$@F|(J($@LZ(J) 20$@;~(J23$@J,:"$K(J yamagata@phys.titech.ac.jp$@$5$s$,=q$-$^$7$?(J
  20.  
  21. yamagata$@$5$s(J>>tahoe $@$N(J ip_icmp.c $@$NCf$K(J microtime $@$,$"$j$^$7$F!"(J
  22. yamagata$@$5$s(J>>$@$3$N$?$a$K(J netinet $@Am:9$7BX$($,$G$-$^$;$s$G$7$?!#(J
  23.  
  24. yamagata$@$5$s(J>> $@$=$l$H$b(J microtime $@$r2?$+B>$KF~$l49$($F:n$k$H$$$&$3$H$,(J
  25. yamagata$@$5$s(J>> $@$G$-$k$N$G$7$g$&$+!#(J
  26.  
  27. $@$3$s$J$N$8$cBLL\$G$9$+$M!)(J
  28.  
  29. #include "time.h"
  30. #include "timeb.h"
  31.  
  32. microtime(tval)
  33.     struct timeval *tval;
  34. {
  35.     struct timeb    tp;
  36.     struct tm      *tm;
  37.  
  38.     ftime(&tp);    
  39.     tm = gmtime(&tp.time);
  40.  
  41.     tval->tv_sec = (long) (tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec);
  42.     tval->tv_usec = (long) tp.millitm;
  43.  
  44.     return;
  45. }
  46.  
  47.   $@Ln7n(J $@M4<#(J (Yuji NOZUKI)   Email:ynozuki@spec.co.jp
  48.   SPEC (System Planning and Engineering Corporation)
  49.   Phone:+81-3-3833-5341     FAX:+81-3-3832-2779
  50.