home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 262.lha / ciatimer / ciatimer.h < prev    next >
C/C++ Source or Header  |  1989-07-02  |  700b  |  30 lines

  1. /* TIMER - Amiga CIA Timer Control Software
  2.  
  3.   originally by Paul Higginbottom, Public Domain
  4.  
  5.   hacked on by karl to produce a monotonically increasing microsecond
  6.   clock, 12/30/88, Public Domain
  7.  
  8.   second release, 4/27/89, Public Domain
  9.  
  10.   cc +p ciatimer.c
  11.   ln ciatimer.o -lcl32
  12.  
  13.   To start the timer, execute BeginCIATimer()
  14.  
  15. */
  16.  
  17. struct CIA_Time
  18. {
  19.     long CIA_Seconds;
  20.     long CIA_Microseconds;
  21. };
  22.  
  23. /* timeslice is 40000 intervals.  Each interval is 1.396825 microseconds,
  24.  * this should correspond to a timing interval of 55873 microseconds */
  25. #define CIA_TIME_SLICE ((unsigned short) 40000)
  26. #define CIA_TIME_QUANTITY ((unsigned short) 55873)
  27.  
  28. #define CIATIMER_INTERRUPT_NAME "CIA Periodic Timer"
  29.  
  30.