equal
deleted
inserted
replaced
96 // timer from the time the device was powered on. |
96 // timer from the time the device was powered on. |
97 // There is only one thread in BREW, so this is enough. |
97 // There is only one thread in BREW, so this is enough. |
98 return GETUPTIMEMS(); |
98 return GETUPTIMEMS(); |
99 #else |
99 #else |
100 // FIXME: We should return the time the current thread has spent executing. |
100 // FIXME: We should return the time the current thread has spent executing. |
101 return currentTime() * 1000; |
101 |
|
102 // use a relative time from first call in order to avoid an overflow |
|
103 static double firstTime = currentTime(); |
|
104 return (currentTime() - firstTime) * 1000; |
102 #endif |
105 #endif |
103 } |
106 } |
104 |
107 |
105 TimeoutChecker::TimeoutChecker() |
108 TimeoutChecker::TimeoutChecker() |
106 : m_timeoutInterval(0) |
109 : m_timeoutInterval(0) |