Guest User

Untitled

a guest
May 9th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 1.33 KB | None | 0 0
  1. #!/usr/bin/expect
  2. set tx_start 0
  3. set tx_time 0
  4. set timeout 400
  5. set test 4000
  6. expect {
  7.     -re {.*pipe_start\n} {
  8.         set tx_start [clock clicks -milliseconds]
  9.         puts "start receive @ $tx_start"
  10.         exp_continue
  11.     }
  12.     -re {\[([0-9]*:[0-9]*:[0-9]*)\.([0-9]*)\].*len_total = $test} {
  13.         set tx_time [expr [clock clicks -milliseconds] - $tx_start]
  14.         puts "end receive @ $tx_time"
  15.     }
  16. }
  17.  
  18. ############################The data#################################################
  19. tipc-pipe.c:234 pipe_start
  20. [13:16:20.158459] tipc-pipe.c:272 pipe_start i = 0 len_total = 32 data_in_len = 32
  21. [13:16:20.158668] tipc-pipe.c:272 pipe_start i = 1 len_total = 64 data_in_len = 32
  22. [13:16:20.158813] tipc-pipe.c:272 pipe_start i = 2 len_total = 96 data_in_len = 32
  23. [13:16:20.158937] tipc-pipe.c:272 pipe_start i = 3 len_total = 128 data_in_len = 32
  24. [13:16:20.159054] tipc-pipe.c:272 pipe_start i = 4 len_total = 160 data_in_len = 32
  25. [13:16:20.159164] tipc-pipe.c:272 pipe_start i = 5 len_total = 192 data_in_len = 32
  26. [13:16:20.159272] tipc-pipe.c:272 pipe_start i = 6 len_total = 224 data_in_len = 32
  27. [13:16:20.159380] tipc-pipe.c:272 pipe_start i = 7 len_total = 256 data_in_len = 32
  28. [13:16:20.159491] tipc-pipe.c:272 pipe_start i = 8 len_total = 288 data_in_len = 32
  29. [13:16:20.159600] tipc-pipe.c:272 pipe_start i = 9 len_total = 320 data_in_len = 32
Advertisement
Add Comment
Please, Sign In to add comment