[Gems-users] problem with "g_eventQueue_ptr->getTime()".


Date: Fri, 22 May 2009 20:15:57 +0800
From: "lenglihello" <lenglihello@xxxxxxx>
Subject: [Gems-users] problem with "g_eventQueue_ptr->getTime()".
hi,
I was confused by a problem with "g_eventQueue_ptr->getTime()".
***************************
Time t=g_eventQueue_ptr->getTime();
while(true)
{
t = g_eventQueue_ptr->getTime();
cout<<t<<endl;
sleep(50);
}
*************************
the result I got is as fallowing:
****************
2812755
2812755
2812755
......
***************
What should I do, if I want to get the time under simulation
 Any help will be aggreciated!
 
PS: hrtime_t can not be accepted in linux
2009-05-22

lenglihello
[← Prev in Thread] Current Thread [Next in Thread→]