CORBA 2.3.3 Programmer's Guide for C++ (NonStop CORBA 2.3.3+)
Table Of Contents
- CORBA 2.3.3 Programmer's Guide for C++
- Legal Notice
- Contents
- About This Guide
- Chapter 1. Introduction to NonStop CORBA Programming
- Chapter 2. NonStop CORBA Administrative Environment
- Chapter 3. Compiling and Building an Application
- Chapter 4. Deploying a NonStop CORBA Application
- Chapter 5. Tracing and Debugging Applications
- Chapter 6. Writing Scalable Applications
- Chapter 7. Managing Transactions
- Chapter 8. Writing Multithreaded Applications
- Chapter 9. Designing Advanced Applications
- Chapter 10. Porting CORBA Applications to NonStop CORBA
- Chapter 11. Writing Wrappers for Legacy Clients and Servers
- Appendix A. Architectural Walkthrough
- Appendix B. Object References
- Appendix C. Servant Reference Counting in NonStop CORBA
- Index

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, Compaq 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