Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : Host Language Call Interface : Using HLC library functions : Timer services
 
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 HLCLibrary 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 the following figure.
Figure 67. Timer-service functions on UNIX