What information do you need to implement in theTarget Deployment Port (TDP) of IBM Rational Test RealTime to have time measurements?
In the following cases you need to enable the clock interface in your TDP.
- You want to perform Performance Profiling.
- You want to have time measurements in the runtime tracing report.
Look first in the documentation for your target to discover if a clock is available. If a clock is available, discover how to access it. Then determine the clock's precision. Once you got this information, open your TDP and select the section.
- Click Library Settings > Clock interface. Then change RTRT_CLOCK to RTRT_USR.
- Specify the data type to store the value of the clock in the tab Clock Type.
Some targets just use a long int, others use a structure with fields for seconds and microseconds.
- Write the code in the tab usr_clock.
The code reads the clock on your target and storesthe code in the address. Parameter p points to the address.
- Write code in the tab usr_clock_init to measure the clock resolution.
Write code in that tab, if your clock returns just "ticks". Then you can convert "ticks" into seconds.
- Provide macros in the Unit Type tab to convert the time that usr_clock reads into a value that you can display in the reports.
The TDP documentation explains what to put in each of these fields.
Leave the last two tabs Time Type\ and usr_sleep as they are. Only the SystemTesting component uses them.
Read the documentation for the "Clock Interface", provided in the TDP editor, to fully understand how you need to enter the information about the clock into the TDP.
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.