================ Com_Milliseconds Can be used for profiling, but will be journaled accurately ================ */
| 899 | ================ |
| 900 | */ |
| 901 | int Com_Milliseconds (void) { |
| 902 | sysEvent_t ev; |
| 903 | |
| 904 | // get events and push them until we get a null event with the current time |
| 905 | do { |
| 906 | |
| 907 | ev = Com_GetRealEvent(); |
| 908 | if ( ev.evType != SE_NONE ) { |
| 909 | Com_PushEvent( &ev ); |
| 910 | } |
| 911 | } while ( ev.evType != SE_NONE ); |
| 912 | |
| 913 | return ev.evTime; |
| 914 | } |
| 915 | |
| 916 | //============================================================================ |
| 917 |
no test coverage detected