TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul de Leeuw
from: Ian Binnie
date: 1996-05-17 10:07:48
subject: libs.h

Paul, The following is a extract from libs.h showing changes "//ib".
I have also included the timer program source.

Edited by P. de Leeuw on 17-12-94 add extern def for clear_scr()
Edited by I. Binnie   on 11-03-92 elapsed time counter added	//ib
Edited by I. Binnie   on 10-06-91 new video driver with VGA/EGA support
...
				/* Directly Console Access Functions */
				/* Prototypes from binnie.c */
extern void clear(void);
extern void clear_scr(void);	//ib
...
			/* Prototypes from getbiost.as, elapsed.c */

extern unsigned long get_bios_timer_count(void);
extern void start_timer(int);
extern unsigned long elapsed_time(int);

/*
Program to execute command line and return elapsed time
Written in HITECH 'C' by Ian Binnie.

This program is written in "standard" C. 
Hardware dependant code in separate machine libraries required.
*/

#define edit_date 	"10 May 1996"
#define version 	"1.0"

#include 
#include 
#include 	/* Binnie library */

typedef unsigned long DWORD;

main(int argc, char **argv)
    {
    DWORD	t;
    char	**argvp;
    
    argvp = argv;

    setvbuf(stdout, 0, _IONBF, 0);			/* no screen buffering */
    
    if(argc>1)
	{
        printf("Executing -");
	while (--argc)
	    {
            printf(" %s", *++argvp);
            }
        printf("\n");
        start_timer(0);
        spawnvp(argv[1], &argv[1]);
        t = elapsed_time(0);
        printf("\nExecution time %6ld.%02ld seconds\n", t/100, t%100);
        }
    }

--- Blue Wave/386 v2.30
* Origin: Sydney PC Users Group Mail Exchange (3:712/505)
SEEN-BY: 50/99 620/243 623/630 711/401 409 410 413 430 808 932 934 712/311
SEEN-BY: 712/390 407 411 505 506 515 517 617 624 704 820 713/888 714/906
SEEN-BY: 800/1
@PATH: 712/505 517 515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.