#include <BOPTest_DrawableShape.hxx>
#include <BOPTest_Objects.hxx>
-#include <BOPTest_Chronometer.hxx>
+#include <OSD_Timer.hxx>
static Standard_Integer bfillds (Draw_Interpretor&, Standard_Integer, const char**);
static Standard_Integer bbuild (Draw_Interpretor&, Standard_Integer, const char**);
Standard_Real aTol;
BOPCol_ListIteratorOfListOfShape aIt;
BOPCol_ListOfShape aLC;
- BOPTest_Chronometer aChrono;
-
BOPCol_ListOfShape& aLS=BOPTest_Objects::Shapes();
aNbS=aLS.Extent();
if (!aNbS) {
if (!strcmp(a[i], "-t")) {
bShowTime=Standard_True;
}
- }
+ }
//
BOPCol_ListOfShape& aLT=BOPTest_Objects::Tools();
//
aIt.Initialize(aLT);
for (; aIt.More(); aIt.Next()) {
const TopoDS_Shape& aS=aIt.Value();
- aLC.Append(aS);
+ aLC.Append(aS);
}
//
BOPAlgo_PaveFiller& aPF=BOPTest_Objects::PaveFiller();
aPF.SetRunParallel(bRunParallel);
aPF.SetFuzzyValue(aTol);
//
- aChrono.Start();
+ OSD_Timer aTimer;
+ aTimer.Start();
//
aPF.Perform();
iErr=aPF.ErrorStatus();
return 0;
}
//
- aChrono.Stop();
+ aTimer.Stop();
+ aTimer.Show();
//
- if (bShowTime) {
- Standard_Real aTime;
- //
- aTime=aChrono.Time();
- Sprintf(buf, " Tps: %7.2lf\n", aTime);
+ if (bShowTime)
+ {
+ Sprintf(buf, " Tps: %7.2lf\n", aTimer.ElapsedTime());
di << buf;
}
//
char buf[128];
Standard_Boolean bRunParallel, bShowTime;
Standard_Integer i, iErr;
-
- BOPTest_Chronometer aChrono;
+
BOPCol_ListIteratorOfListOfShape aIt;
//
BOPAlgo_PaveFiller& aPF=BOPTest_Objects::PaveFiller();
aBuilder.SetRunParallel(bRunParallel);
//
//
- aChrono.Start();
+ OSD_Timer aTimer;
+ aTimer.Start();
//
aBuilder.PerformWithFiller(aPF);
iErr=aBuilder.ErrorStatus();
return 0;
}
//
- aChrono.Stop();
+ aTimer.Stop();
+ aTimer.Show();
//
- if (bShowTime) {
- Standard_Real aTime;
- //
- aTime=aChrono.Time();
- Sprintf(buf, " Tps: %7.2lf\n", aTime);
+ if (bShowTime)
+ {
+ Sprintf(buf, " Tps: %7.2lf\n", aTimer.ElapsedTime());
di << buf;
}
//
Standard_Integer iErr, iOp, i;
BOPAlgo_Operation aOp;
BOPCol_ListIteratorOfListOfShape aIt;
- BOPTest_Chronometer aChrono;
//
iOp=Draw::Atoi(a[2]);
if (iOp<0 || iOp>4) {
//
pBuilder->SetRunParallel(bRunParallel);
//
- aChrono.Start();
+ OSD_Timer aTimer;
+ aTimer.Start();
//
pBuilder->PerformWithFiller(aPF);
iErr=pBuilder->ErrorStatus();
return 0;
}
//
- aChrono.Stop();
+ aTimer.Stop();
+ aTimer.Show();
//
if (bShowTime) {
- Standard_Real aTime;
- //
- aTime=aChrono.Time();
- Sprintf(buf, " Tps: %7.2lf\n", aTime);
+ Sprintf(buf, " Tps: %7.2lf\n", aTimer.ElapsedTime());
di << buf;
}
//