home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / MODEM / UWPC201.ZIP / UW-SRC.ZIP / TIMER.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-11  |  2.0 KB  |  67 lines

  1. //-------------------------------------------------------------------------
  2. //
  3. // TIMER.H - Timer declarations for UW/PC.
  4. // 
  5. //  This file is part of UW/PC - a multi-window comms package for the PC.
  6. //  Copyright (C) 1990-1991  Rhys Weatherley
  7. //
  8. //  This program is free software; you can redistribute it and/or modify
  9. //  it under the terms of the GNU General Public License as published by
  10. //  the Free Software Foundation; either version 1, or (at your option)
  11. //  any later version.
  12. //
  13. //  This program is distributed in the hope that it will be useful,
  14. //  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. //  GNU General Public License for more details.
  17. //
  18. //  You should have received a copy of the GNU General Public License
  19. //  along with this program; if not, write to the Free Software
  20. //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. //
  22. // Revision History:
  23. // ================
  24. //
  25. //  Version  DD/MM/YY  By  Description
  26. //  -------  --------  --  --------------------------------------
  27. //    1.0    07/04/91  RW  Original Version of TIMER.H
  28. //
  29. // You may contact the author by:
  30. // =============================
  31. //
  32. //  e-mail: rhys@cs.uq.oz.au
  33. //    mail: Rhys Weatherley
  34. //          5 Horizon Drive
  35. //          Jamboree Heights
  36. //          Queensland 4074
  37. //        Australia
  38. //
  39. //-------------------------------------------------------------------------
  40.  
  41. #ifndef __TIMER_H__
  42. #define    __TIMER_H__
  43.  
  44. //
  45. // Define various system timer values for UW/PC.
  46. //
  47. extern    int    CurrentTime;    // Current 24-hour time in minutes.
  48. extern    int    OnlineTime;    // Time in minutes since logon (mod 6000).
  49. extern    int    TimerCount;    // Incremented every 18.2th of a second.
  50.  
  51. //
  52. // Initialise the system timer routines.
  53. //
  54. void    InitTimers    (void);
  55.  
  56. //
  57. // Terminate the system timer routines.
  58. //
  59. void    TermTimers    (void);
  60.  
  61. //
  62. // Reset the current online time to zero.
  63. //
  64. void    ResetOnline    (void);
  65.  
  66. #endif    /* __TIMER_H__ */
  67.