home *** CD-ROM | disk | FTP | other *** search
- /*
- #### # # # #
- # # # # # The FreeWare C library for
- # # ## ### # # # # ### RISC OS machines
- # # # # # # # # # # # ___________________________________
- # # #### ### ## # # # #
- # # # # # # # # # # Please refer to the accompanying
- #### ### #### # # ##### # ### documentation for conditions of use
- ________________________________________________________________________
-
- File: Desklib:Time.h
- Author: Copyright © 1992 Jason Williams
- Version: 1.00 (14 May 1992)
- Purpose: time handling
- */
-
-
- #ifndef __dl_time_h
- #define __dl_time_h
-
-
- /* Time_Monotonic
- * Veneer for the OS_ReadMonotonicTime SWI
- * Returns an integer representing the time since the computer was switched
- * on, in centiseconds.
- * Used with Wimp_PollIdle to poll every now and then, as in:
- * time = Time_Monotonic();
- * Wimp_PollIdle(mask, block, time + 100); // Pollidle for 1 sec (100cs)
- *
- * Can also be used to time things, i.e.
- * time = Time_Monotonic();
- * while (Time_Monotonic < time+100) |* wait *| ; // Wait for 1 second
- */
- extern int Time_Monotonic(void);
-
- #endif
-