home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / timer.h < prev    next >
Text File  |  1990-08-13  |  838b  |  32 lines

  1. /*
  2.     timer.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "Application.h"
  8. #import <objc/error.h>
  9.  
  10. /*
  11.    Information used by the system between calls to NXBeginTimer and
  12.    NXEndTimer.  This can either be allocated on the stack frame of
  13.    the caller, or by NXBeginTimer.  The application should not
  14.    access any of the elements of this structure.
  15. */
  16.  
  17. typedef struct _NXTrackingTimer {
  18.     double delay;
  19.     double period;
  20.     DPSTimedEntry te;
  21.     BOOL freeMe;
  22.     BOOL firstTime;
  23.     NXHandler *errorData;
  24.     int reserved1;
  25.     int reserved2;
  26. } NXTrackingTimer;
  27.  
  28. /* used for initial delay and periodic behavior in tracking loops */
  29.  
  30. extern NXTrackingTimer *NXBeginTimer(NXTrackingTimer *timer, double delay, double period);
  31. extern void NXEndTimer(NXTrackingTimer *timer);
  32.