5 ##############################################
6 # Regression: BRepExtrema works too much slower in 691 (from 670)
7 ##############################################
8 restore [locate_data_file bug27371.brep] aShape
13 # Check computation time
14 chrono h reset; chrono h start
15 for { set i 1 } { $i <= 100 } { incr i } {
16 distmini d aShape_1 aShape_2
17 distmini d aShape_2 aShape_1
19 chrono h stop; chrono h show
21 regexp {CPU user time: (\d*)} [dchrono h show] dummy sec
23 puts "Error: too long computation time $sec seconds"
25 puts "Computation time is OK"
28 # Check result of distance distance
32 set aDist [dval d_val]
33 checkreal "Distance value check" $aDist $aDist_Exp $absTol $relTol