home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_GEN
/
EDSV4064.ZIP
/
EPP-V1_1.ZIP
/
ETIMER.DOC
< prev
next >
Wrap
Text File
|
1993-06-26
|
2KB
|
23 lines
/*------------------------------------------------------------------------*/
/* */
/* USING eTimer */
/* */
/* The first proc calling et_startTime() will cause the invocation of */
/* et_init(). This call should contain a larger id value than any other */
/* since this value is used to dimension the arrays. */
/* */
/* Each PROC being timed should call et_startTimer() immediately upon */
/* entering the PROC, and call et_stopTimer() just before exiting the */
/* PROC. Calls to these two functions require a unique proc-id as */
/* parameter (0-n.) It is probably best to set up ENUMS for this and */
/* just convert the PROC name to uppercase. et_startTimer() accepts a */
/* POINTER TO STRING that is printed by et_report(), which is better than */
/* just a proc-id. NIL *can* be passed if you don't want to bother with */
/* the proc-names. */
/* et_report() is automatically called upon the exiting call to */
/* et_stopTimer() (which should be at the end of PROC main().) Actually, */
/* this timing algorithm should work just as well for timing parts of a */
/* program .vs. the whole thing, as long as the calls to et_startTimer() */
/* and et_stopTimer() are balanced. */
/*------------------------------------------------------------------------*/