CORBA 2.3.7 Programmer's Guide for C++
Include the $NSD_ROOT/include/nsdevent/timer.h header file in your program:
#include <nsdevent/timer.h>
1. 
Declare and initialize a timer, as in the following example that sets a five-second timer:
NSDEFw_Timer::my_app_timer (5*Fw_Time_Stamp::Ticks_Per_Second);
2. 
At the point in the thread where a pause is required, call the NSDEFw_Timer.wait() function to wait for the set time
period:
my_app_timer.wait();
3. 
Note
The timer.h header file contains additional classes and methods; however, HP recommends you use only
NSDEFW_Timer.wait(). The other classes and methods in timer.h are useful primarily to NonStop CORBA internal code.
Prev  Up  Next
Chapter 7. Managing Transactions 
Home
 Chapter 9. Designing Advanced
Applications










