#include #include #define CLOCK 0x1a //BIOS clock tix unsigned int gettix(void); void main() { unsigned int x; x = gettix(); //get tick count printf("The tick count is %u.\n",x); } unsigned int gettix(void) { union REGS regs; struct SREGS sregs; regs.h.ah=0x00; //Read the clock int86x(CLOCK,®s,®s,&sregs); return(regs.x.dx); }