First commit 14/08/1999

This commit is contained in:
José David Guillén 2021-09-12 19:56:24 +02:00
commit e00d930f44
4 changed files with 55 additions and 0 deletions

23
LPT.BAK Normal file
View File

@ -0,0 +1,23 @@
#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) );
}

23
LPT.CPP Normal file
View File

@ -0,0 +1,23 @@
#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\n", (cont/2000) );
}

BIN
LPT.EXE Normal file

Binary file not shown.

9
README.md Normal file
View File

@ -0,0 +1,9 @@
#lpt
*14/08/1999*
ToDo: wwtcf?
![screenshot](/lpt.png "Screenshot")