================ idEventLoop::Milliseconds Can be used for profiling, but will be journaled accurately ================ */
| 250 | ================ |
| 251 | */ |
| 252 | int idEventLoop::Milliseconds( void ) { |
| 253 | #if 1 // FIXME! |
| 254 | return Sys_Milliseconds() - initialTimeOffset; |
| 255 | #else |
| 256 | sysEvent_t ev; |
| 257 | |
| 258 | // get events and push them until we get a null event with the current time |
| 259 | do { |
| 260 | |
| 261 | ev = Com_GetRealEvent(); |
| 262 | if ( ev.evType != SE_NONE ) { |
| 263 | Com_PushEvent( &ev ); |
| 264 | } |
| 265 | } while ( ev.evType != SE_NONE ); |
| 266 | |
| 267 | return ev.evTime; |
| 268 | #endif |
| 269 | } |
| 270 | |
| 271 | /* |
| 272 | ================ |
no test coverage detected