home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d178 / ciatimer.lha / CIATimer / CIATimer2 / ciatimer.h < prev    next >
C/C++ Source or Header  |  1989-02-04  |  605b  |  26 lines

  1. /* ciatimer.h - include file Amiga CIA Timer Control Software 0.1a
  2.  
  3.   CIA timer code originally by Paul Higginbottom, Public Domain
  4.  
  5.   this include file was written by Karl Lehenbauer, Public Domain
  6.  
  7.   cc +p ciatimer.c
  8.   ln ciatimer.o -lcl32
  9.  
  10.   To start the timer, execute BeginCIATimer()
  11.  
  12. */
  13.  
  14. struct CIA_Time
  15. {
  16.     long CIA_Seconds;
  17.     long CIA_Microseconds;
  18. };
  19.  
  20. /* timeslice is 46911 intervals.  Each interval is 1.397 microseconds,
  21.  * this should correspond to a timing interval of 65536 microseconds */
  22. #define CIA_TIME_SLICE ((unsigned short) 46911)
  23.  
  24. #define CIATIMER_INTERRUPT_NAME "CIA Periodic Timer"
  25.  
  26.