home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / c / bts314b4 / timer.h < prev    next >
C/C++ Source or Header  |  1991-07-03  |  4KB  |  69 lines

  1. #ifndef H_TIMER
  2. #define H_TIMER
  3. /*--------------------------------------------------------------------------*/
  4. /*                                                                          */
  5. /*                                                                          */
  6. /*      ------------         Bit-Bucket Software, Co.                       */
  7. /*      \ 10001101 /         Writers and Distributors of                    */
  8. /*       \ 011110 /          Freely Available<tm> Software.                 */
  9. /*        \ 1011 /                                                          */
  10. /*         ------                                                           */
  11. /*                                                                          */
  12. /*  (C) Copyright 1987-90, Bit Bucket Software Co., a Delaware Corporation. */
  13. /*                                                                          */
  14. /*                                                                          */
  15. /*                 Timer definitions used in BinkleyTerm                    */
  16. /*                                                                          */
  17. /*                                                                          */
  18. /*    For complete  details  of the licensing restrictions, please refer    */
  19. /*    to the License  agreement,  which  is published in its entirety in    */
  20. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.240.    */
  21. /*                                                                          */
  22. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  23. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  24. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  25. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  26. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  27. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  28. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  29. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  30. /*                                                                          */
  31. /*                                                                          */
  32. /* You can contact Bit Bucket Software Co. at any one of the following      */
  33. /* addresses:                                                               */
  34. /*                                                                          */
  35. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:132/491, 1:141/491  */
  36. /* P.O. Box 460398                AlterNet 7:491/0                          */
  37. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  38. /*                                Internet f491.n132.z1.fidonet.org         */
  39. /*                                                                          */
  40. /* Please feel free to contact us at any time to share your comments about  */
  41. /* our software and/or licensing policies.                                  */
  42. /*                                                                          */
  43. /*--------------------------------------------------------------------------*/
  44.  
  45.  
  46. /* This union holds a long integer as a long, 2 ints or 4 chars */
  47.  
  48. typedef union
  49.     {
  50.     long l;
  51.     struct
  52.         {
  53.         unsigned char c[4];
  54.         } c;
  55.     struct
  56.         {
  57.         unsigned int i[2];
  58.         } i;
  59.     } TIMETYPE;
  60.  
  61.  
  62. #define PER_WEEK  60480000L
  63. #define PER_DAY    8640000L
  64. #define PER_HOUR    360000L
  65. #define PER_MINUTE     6000L
  66. #define PER_SECOND     100L
  67.  
  68. #endif    /* H_TIMER */
  69.