It is currently Tue Feb 07, 2012 9:23 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: How Do I Call OMTimerManager::getElapsedTime method?
PostPosted: Wed Mar 31, 2010 10:47 pm 

Joined: Wed Mar 31, 2010 10:16 pm
Posts: 1
I'm trying to call this getElapsedTime method that resides in the OMTimerManger class.
I believe that I must call this method in an instance of OMTimerManager.
The instance name, as best I can determine by looking in <Rhapsody installation location>\Share\LangCPP\oxf\reactive.cpp, line 588 is sysTimer.

I've tried the following lines in my code to access the current elapsed time with various error messages

sysTimer.getElapsedTime() sysTimer undeclared identifier
OMTimerManager::getElapsedTime() Illegal call of non-static member function (I must call the instance)
OMTimerManager.getElapsedTime()
sysTimer->getElapsedTime()
OMTimerManager::sysTimer->getElapsedTime()

I could go on and on. Obviously I'm really green at C++.
I think my fundamental problem is I'm not properly referring to the instance of OMTimerManager.


Offline
 Profile  
 
 Post subject: Re: How Do I Call OMTimerManager::getElapsedTime method?
PostPosted: Thu Apr 01, 2010 10:18 am 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
Can I ask why you want to call it?


Offline
 Profile  
 
 Post subject: Re: How Do I Call OMTimerManager::getElapsedTime method?
PostPosted: Mon Oct 18, 2010 7:56 pm 

Joined: Wed Oct 31, 2007 3:09 pm
Posts: 58
Location: Milkyway, classic 9-planet solar system
Guess you've already got it in the meanwhile... :wink: for curiosity of others:

OMTimerManager::instance()->getElapsedTime(); // assuming there is always a valid instance :evil:



_________________
May the force be with you ...
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred