Category : Files from Magazines
Archive   : WDAPR92.ZIP
Filename : 3N04048A

Output of file : 3N04048A contained in archive : WDAPR92.ZIP

main.c - main program for time stamp testing

Written by: Charles B. Allison
Allison Technical Services
Houston, Texas, USA 77036

void main(void);
extern long get_time(void);/* get 32 bit time value */
extern int get_tmr(void); /* get timer contents */
extern void init_timer(void);/*set 8253 timer mode=2*/
extern long get_sec_time(long val);/*since midnight */
/* get milliseconds since last full second */
extern int get_msec_time(long val);
/* get absolute difference in two 32 bit
time stamp values */
extern long atime_diff(unsigned long time1,
unsigned long time2);
/* print the time hh:mm:ss.ffff */
extern void print_time(unsigned long intim);

/* ---------------- main --------------- */
void main(void)
long time1, time2, diff;

init_timer(); /* change timer to mode 2 */
time1 = get_time();
printf("Program beginning at time: ");
time1 = get_time();
printf("How long does it take to output This message?\n");
time2 = get_time();
diff = atime_diff(time1,time2);
printf("\nIt takes ");
printf(" to print out that message.\n\n");
printf("Press the Enter key to exit\n");
time1 = get_time();
printf("\nProgram exiting at time = ");

  3 Responses to “Category : Files from Magazines
Archive   : WDAPR92.ZIP
Filename : 3N04048A

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: