// experi6i.c

#include <dos.h>
#include <stdio.h>
#include <bios.h>
#include "extern6i.h"

void main(void)
{
  int x;

  set_up_new_timer(4000);

  printf("frequency = %f\n",get_frequency());

  printf("Press any key to begin test: ");
  getch(); // wait for key
  puts(""); // print a blank line

  for(x=0; x<60; x++)
  {
    if(kbhit())
      break;
    printf("x = %2d counter = %6ld\n",x,get_timer_counter());
    wait(1);
  }

  // don't forget this one -- your computer could freeze!!!
  restore_old_timer();
}

// end experi6i.c

