LPT/LPT.BAK
2021-09-12 19:56:24 +02:00

24 lines
438 B
Plaintext

#include <dos.h>
#include <time.h>
#include <stdio.h>
void main( void )
{
clock_t start, end;
float cont;
cont = 0;
start = clock();
while ( ((clock() - start) / CLK_TCK) < 20 )
{
outportb( 0x378, 0x00 ); cont++;
}
printf("En 20 segundo, realice %f outports\n", cont );
cont /= 20;
printf("%f por segundo... (%f Kb/s)\n", cont, (cont/1024) );
printf("2 bit (segidos) -> 1 Hz ===>>> %f KHz", (cont/2000) );
}