remove Sys_DoubleTime()

This commit is contained in:
Garux 2021-10-31 14:33:57 +03:00
parent 522f6f907e
commit c217ad981a
2 changed files with 3 additions and 8 deletions

View File

@ -58,8 +58,3 @@ inline bool Q_mkdir( const char* name ){
return mkdir( name, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ) != -1; // rwxrwxr-x
}
#endif
inline double Sys_DoubleTime( void ){
return clock() / 1000.0;
}

View File

@ -2214,7 +2214,8 @@ void CamWnd::draw(){
}
void CamWnd::BenchMark(){
double dStart = Sys_DoubleTime();
Timer timer;
timer.start();
for ( int i = 0; i < 100; i++ )
{
Vector3 angles;
@ -2223,8 +2224,7 @@ void CamWnd::BenchMark(){
angles[CAMERA_YAW] = static_cast<float>( i * ( 360.0 / 100.0 ) );
Camera_setAngles( *this, angles );
}
double dEnd = Sys_DoubleTime();
globalOutputStream() << FloatFormat( dEnd - dStart, 5, 2 ) << " seconds\n";
globalOutputStream() << timer.elapsed_msec() << " milliseconds\n";
}