home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!rena!specgw!ynozuki
- From: ynozuki@spec.co.jp (Yuji NOZUKI)
- Newsgroups: fj.lan
- Subject: Re: q: traffic on network
- Message-ID: <2597@specgw.spec.co.jp>
- Date: 22 Jan 93 03:10:58 GMT
- References: <1993Jan20.020617.9210@siebold.cc.nagasaki-u.ac.jp>
- <KENJI.93Jan20142418@daemun.rcac.astem.or.jp>
- <FUJIWARA.93Jan21145449@oscar13.oscar.info.waseda.ac.jp>
- <YAMAGATA.93Jan21202350@tithp3.phys.titech.ac.jp>
- Sender: ynozuki@specgw.spec.co.jp
- Distribution: fj
- Organization: System Planning and Engineering Corp., Tokyo, Japan
- Lines: 34
-
- $@Ln7n!w#S#P#E#C$G$9(J.
-
- fj.lan $@$N(J <YAMAGATA.93Jan21202350@tithp3.phys.titech.ac.jp>$@$N5-;v$G(J
- 1993$@G/(J01$@7n(J21$@F|(J($@LZ(J) 20$@;~(J23$@J,:"$K(J yamagata@phys.titech.ac.jp$@$5$s$,=q$-$^$7$?(J
-
- yamagata$@$5$s(J>>tahoe $@$N(J ip_icmp.c $@$NCf$K(J microtime $@$,$"$j$^$7$F!"(J
- yamagata$@$5$s(J>>$@$3$N$?$a$K(J netinet $@Am:9$7BX$($,$G$-$^$;$s$G$7$?!#(J
-
- yamagata$@$5$s(J>> $@$=$l$H$b(J microtime $@$r2?$+B>$KF~$l49$($F:n$k$H$$$&$3$H$,(J
- yamagata$@$5$s(J>> $@$G$-$k$N$G$7$g$&$+!#(J
-
- $@$3$s$J$N$8$cBLL\$G$9$+$M!)(J
-
- #include "time.h"
- #include "timeb.h"
-
- microtime(tval)
- struct timeval *tval;
- {
- struct timeb tp;
- struct tm *tm;
-
- ftime(&tp);
- tm = gmtime(&tp.time);
-
- tval->tv_sec = (long) (tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec);
- tval->tv_usec = (long) tp.millitm;
-
- return;
- }
-
- $@Ln7n(J $@M4<#(J (Yuji NOZUKI) Email:ynozuki@spec.co.jp
- SPEC (System Planning and Engineering Corporation)
- Phone:+81-3-3833-5341 FAX:+81-3-3832-2779
-