IBM Support

How to set the timer resolution for a model in IBM Rational Rhapsody

Question & Answer


Question

How do you set the timer resolution for a model in IBM Rational Rhapsody?

Cause

You would like to have higher accuracy for the timeout function in your Rhapsody model

Answer

In order to increase the accuracy of the timer resolution, you need to set it by using the property:


<lang>_CG::Framework::TimerResolution

The multimedia timer for windows is included and enabled in the OXF by default (it doesn't require an OXF rebuild).

The multimedia timer is enabled/disabled by a #define in the "share/LangCpp/osconfig/WIN32/omosconfig.h"

-> OM_USE_MULTIMEDIA_TIMER

If you want to see how this is implemented in the OXF for Windows/MSVC environments you can see the NTTimer constructor in the "share/LangCpp/oxf/ntos.c" file.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg22016566