Thread View: fj.sys.pc98
2 messages
2 total messages
Started by Hiroaki Morino
Tue, 15 Dec 1992 04:15
Re: How to time on pc98
Author: Hiroaki Morino
Date: Tue, 15 Dec 1992 04:15
Date: Tue, 15 Dec 1992 04:15
42 lines
1797 bytes
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
Re: How to time on pc98
Author: Tetsuro Kojima
Date: Tue, 15 Dec 1992 08:37
Date: Tue, 15 Dec 1992 08:37
22 lines
1234 bytes
1234 bytes
$@;yEg!w5~BgEE5$$G$9!#(J In article <T20553.92Dec15131554@maxwell.ee.t.u-tokyo.ac.jp> t20553@ee.t.u-tokyo.ac.jp (Hiroaki Morino) writes: > $@$_$J$5$^$I$&$b$"$j$,$H$&$4$6$$$^$7$?!#$3$N%j%9%H$r8fMw$K$J$C$F!"!V$3(J >$@$3$,$*$+$7$$$>(J!$@!W$H$$$&(J$@$+$?$O!"$^$?%"%I%P%$%9$r$*$M$,$$$7$^$9!#(J $@F1MM$N%U%)%m!<$,$"$k$H;W$$$^$9$,!"(J > int T=0; $@$NItJ,$r(J volatile int T=0; $@$K$7$?$[$&$,$h$$$H;W$$$^$9!#(J -------------------------------------------- $@;y(J$@EgE0O:!w5~ETBg3X9)3XItEE5$9)3X2J@>@n8&5f<<(J t-kojima@kuee.kyoto-u.ac.jp
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads