1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027691: Remove dchrono from all test cases and move its to perf group

Remove performance comparing with hardcoded value.
Test cases for performance of some commands were moved to perf group.

Updated documentation.
This commit is contained in:
ski
2017-01-19 16:31:17 +03:00
committed by apn
parent 810b672ff3
commit 44fae8b193
165 changed files with 1267 additions and 2770 deletions

View File

@@ -199,6 +199,17 @@ void OSD_Chronometer::Reset ()
Cumul_user = Cumul_sys = 0.;
}
//=======================================================================
//function : Restart
//purpose :
//=======================================================================
void OSD_Chronometer::Restart ()
{
Stopped = Standard_True;
Start();
}
//=======================================================================
//function : Stop
//purpose :

View File

@@ -54,7 +54,10 @@ public:
//! Stops and Reinitializes the Chronometer.
Standard_EXPORT virtual void Reset();
//! Restarts the Chronometer.
Standard_EXPORT virtual void Restart();
//! Stops the Chronometer.
Standard_EXPORT virtual void Stop();

View File

@@ -125,6 +125,18 @@ void OSD_Timer::Reset ()
OSD_Chronometer::Reset();
}
//=======================================================================
//function : Restart
//purpose :
//=======================================================================
void OSD_Timer::Restart ()
{
TimeStart = GetWallClockTime();
TimeCumul = 0.;
OSD_Chronometer::Restart();
}
//=======================================================================
//function : Show
//purpose :

View File

@@ -52,7 +52,10 @@ public:
//! Stops and reinitializes the timer with zero elapsed time.
Standard_EXPORT virtual void Reset() Standard_OVERRIDE;
//! Restarts the Timer.
Standard_EXPORT virtual void Restart() Standard_OVERRIDE;
//! Shows both the elapsed time and CPU time on the standard output
//! stream <cout>.The chronometer can be running (Lap Time) or
//! stopped.