Progress
External Program
Interfaces


Timer Services

Timer services provide functions that allow your application to wait for or respond to the completion of a specified time interval on the system clock.

Any HLC function that requires timer services should not use the sleep() or other operating system functions to access the system clock. Access the following HLC library functions for timer services on UNIX: prosleep(), proevt(), prowait(), and procncel(). Access prosleep for timer services in Windows. The proevt(), prowait(), and procncel() timer services are available only on UNIX. See "HLC Library Function Reference," for information on these functions.

The timer-service functions provide all the tools you need to determine whether a timer is expired. The UNIX-specific program fragment shows examples of timer-service functions proevt(), prockint(), and procncel(), as shown in Figure 2–5.

Figure 2–5: Timer-service Functions On UNIX


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095