🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.sys.pc98
Article #527

Re: How to time on pc98

#527
From: Hiroaki Morino
Date: Tue, 15 Dec 1992 04:15
42 lines
1797 bytes
$@:G=i$K(J$@<ALd$r$7$?!"El5~Bg3X$N?9Ln$G$9!#(J
$@$?$/$5$s$NJ}$,!"%U%)%m!<$r$7$F$/$@$5$$$^$7$F!"$I$&$b$"$j$,$H$&$4$6$$(J$@$^$7$?!#(J
$@3+H/4D6-$K$D$$$F$N@bL@$,$"$j$^$;$s$G!"<:NiCW$7$^$7$?!#;HMQ$7$F$$$k8@8l(J
$@$O!"(JTurbo C ver 2.0 $@$G(J$@$9!#(J
 $@3'MM$N%"%I%P%$%9$K$7$?$,$C$F!"(Jbios98timer() $@$H$$$&!"%?%$%^!<3d$j9~$_(J
$@$N4X?t$r$D$+$C$F!"%W%m%0%i(J$@%`$rAH$s$@$H$3$m!"(J10ms $@C10L$G;~4V$rB,$k$3$H(J
$@$,$G$-$^$7$?!#0J2<$K!"%j%9%H$r<($7$^$9!#(J

Timer.c (TurboC ver 2.0)

 #include<bios98.h>
 #include<stdio.h>
 #include<stdlib.h>
 
 int T=0;
 void timer_func();
 
 main(int argc,char *argv[])
 {
  bios98timer(1,(void(*)())timer_func); /*10ms$@$4$H$K3d$j9~$_(J*/
  system(argv[1]);
  bios98stoptimer();
  printf(" Execution time : %d.%02dsec",T/100,T%100);
 }

 void timer_func()
 {
  T++;
  bios98timer(1,(void (*))timer_func);
 }


 $@$3$N%?%$%^!<3d$j9~$_$O!"0l2s$G=*$C(J$@$F$7$^$&$N$G!"(Jtimer-func()$@$N$J$+$G!":F5"(J
$@8F$S=P$7$r$7$F$$$^$9!#(J

 $@$_$J$5$^$I$&$b$"$j$,$H$&$4$6$$$^$7$?(J$@!#$3$N%j%9%H$r8fMw$K$J$C$F!"!V$3(J
$@$3$,$*$+$7$$$>(J!$@!W$H$$$&$+$?$O!"$^$?%"%I%P%$%9$r$*$M$,$$$7$^$9!#(J

  
--
$@El5~Bg3X9)3XItEE;R9)3X2J(J3$@G/(J  $@?9LnGn>O(J
t20553@ee.t.u-tokyo.ac.jp
Technical Details
Message-ID: <T20553.92Dec15131554@maxwell.ee.t.u-tokyo.ac.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!glocom!utnet-news!news.u-tokyo.ac.jp!enterprise!escargot!escargot!t20553

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!glocom!utnet-news!news.u-tokyo.ac.jp!enterprise!escargot!escargot!t20553
From: t20553@ee.t.u-tokyo.ac.jp (Hiroaki Morino)
Newsgroups: fj.sys.pc98
Subject: Re: How to time on pc98
Message-ID: <T20553.92Dec15131554@maxwell.ee.t.u-tokyo.ac.jp>
Date: 15 Dec 92 04:15:54 GMT
Sender: news@ee.t.u-tokyo.ac.jp
Distribution: fj
Organization: Electrical Eng. University of Tokyo, Tokyo, Japan.
Lines: 42
Nntp-Posting-Host: eegw.ee.t.u-tokyo.ac.jp