
GENERAL NOTES
-------------

Hi folks.  I've got a timer FLL you might be able to use.  You can add up
to four timers to your application with one function call.

I have provided the following files:

  README.TXT  - This be it!
  TIMEIT.FLL  - FoxPro 2.5-2.6 Library File (Windows)
  TIMEIT.C    - Original Source Code
  WINWAT.MAK  - Make File (WatCom C) used to create FLL
  MAKEIT.BAT  - A batch file to run the Make file
  
You will need the FoxPro LCK if you want to modify the library.

Please feel free to contact me if you have any questions:

     John P. Repko
     Micro Endeavors, Inc.
     (610) 449-4680  ...Voice
     (610) 449-4757  ...Fax

     74461,3242      ...CompuServe ID
     
DISCLAIMER
----------
You may distribute and/or modify any of these files as you see
fit.  I take no responsibility for their use or misuse.  This is
America...

LIBRARY USAGE
-------------

I snatched this out of the header in the "C" code since you
might not be the kind who disects source code (like me).  There's
some sample use code at the bottom.

/********************************************************************
*
* TIMEIT.C.....Application Timer Library
*
* Author:      John P. Repko
* Last Update: 12/19/94
* Compiler:    WatCom C, version 9
* Fox Version: FoxPro 2.6
*
* Description: This library provides three functions to enable you
*              to add a series of up to four timed functions to your
*              application.
*
*              Since the Library is a true Windows Timer, it will
*              work regardless of the process the
*              user is performing (e.g.: menus, reads, etc...) or
*              even if your App is not the active Windows App.
*
*********************************************************************
*
* Function:    TimerOn(proc1,proctime1 [,proc2,proctime2...])
*
* Description: This function activates the timer.  Up to four
*              procedures can be included with different frequencies
*              if desired.
*
* Parameters:  proc1     - <char> - Required.  This is the name of
*                                   the procedure to "DO".
*              proctime1 - <int > - Required.  The frequency, in
*                                   seconds, that the procedure is
*                                   called.
*
* Returns:     Nothing.
*              
*********************************************************************
*
* Function:    TimerDead()
*
* Description: This function deactivates the timers without
*              unloading the library.  I can't think of why you would
*              want to use it, but it was useful for debugging.
*
* Parameters:  None.
*
* Returns:     Nothing.
*
*********************************************************************
*
* Function:    TimerShow()
*
* Description: This function identifies the procedures and frequencies
*              currently in place.
*
* Parameters:  None.
*
* Returns:     <char> string which lists the timers in effect.
*
*********************************************************************
*
* Sample Use:  *--Set up Timed Procedures--*
*              SET LIBRARY TO timeit ADDITIVE
*              =TimerOn("GETMSG",5,"SENDMSG",5,"CHECKUP",60,"OKL",30)
*              .
*              .
*              ? TimerShow()
*              .
*              .
*              PROCEDURE GETMSG
*              ...do something
*              RETURN
*              
*              PROCEDURE SENDMSG
*              ...do something
*              RETURN
*              
*              PROCEDURE CHECKUP
*              ...do something
*              RETURN
*              
*              PROCEDURE OKL
*              ...do something
*              RETURN
*
*********************************************************************/

Have Fun!

~~~~
-JR-
