Forum Discussion
SyafieqS
Super Contributor
5 years agoHi Sean,
Can you show me how did you see the time result? Any snapshot would be good
- ee600015 years ago
New Contributor
I just take the number of ticks between commands.
master_write_8 $c_path $a 0x05set t1 [expr [clock microseconds]]master_write_32 $c_path $b $addrset t2 [expr [clock microseconds]]master_write_32 $c_path $c 0x00000000set t3 [expr [clock microseconds]]master_write_8 $c_path $d 0x0001set t4 [expr [clock microseconds]]master_write_8 $c_path $e 0x0000set t5 [expr [clock microseconds]]puts "[expr $t2-$t1]us"puts "[expr $t3-$t2]us"puts "[expr $t4-$t3]us"puts "[expr $t5-$t4]us"