0025624: Visualization - selection is incorrect in perspective mode in a specific...
[occt.git] / tests / bugs / fclasses / bug25514
CommitLineData
7e7bbb3a 1puts "========"
2puts "OCC25514"
3puts "========"
4puts ""
5#########################################################################################
6# TKernel, OSD_Timer - do not accumulate error in timer within queries in running state
7#########################################################################################
8
9# Set number of cycle iteration
10set IterationCount 10000
11set iCounter 1
12
13# Set rank of timer's value
14set TimeRank 2
15
16# Start timers
17dchrono bug_info_1 reset
18dchrono bug_info_2 reset
19dchrono bug_info_1 start
20dchrono bug_info_2 start
21
22# Operation cycle (show only one timer state)
23while {$iCounter != $IterationCount} {
24 dchrono bug_info_1 show
25 set iCounter [expr {$iCounter + 1}]
26}
27
28# Stop timers
29dchrono bug_info_1 stop
30dchrono bug_info_2 stop
31
32# Get timers value
33set Timer_1 [dchrono bug_info_1 show]
34set Timer_2 [dchrono bug_info_2 show]
35
36# Modify timers value for comparison
37set TimerValue_1 [lindex $Timer_1 6]
38set TimerValue_1 [string range $TimerValue_1 0 [expr {[string first "." $TimerValue_1] + $TimeRank}]]
39set TimerValue_2 [lindex $Timer_2 6]
40set TimerValue_2 [string range $TimerValue_2 0 [expr {[string first "." $TimerValue_2] + $TimeRank}]]
41
42# Comparison of timer's values
43puts "Compare: [lindex $Timer_1 6] vs [lindex $Timer_2 6]"
44if {$TimerValue_1 != $TimerValue_2} {
45 puts "ERROR: OCC25514 is reproduced."
46} else {
47 puts "OK"
48}