We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17fcb97 commit f45dc1cCopy full SHA for f45dc1c
flow/scripts/util.tcl
@@ -1,7 +1,13 @@
1
proc log_cmd {cmd args} {
2
# log the command, escape arguments with spaces
3
- puts "$cmd [join [lmap arg $args {expr {[string match {* *} $arg] ? "\"$arg\"" : $arg}}] " "]"
+ puts -nonewline "$cmd[join [lmap arg $args {expr {[string match {* *} $arg] ? " \"$arg\"" : " $arg"}}] ""]"
4
+ set start [clock seconds]
5
$cmd {*}$args
6
+ set time [expr {[clock seconds] - $start}]
7
+ if {$time >= 5} {
8
+ puts -nonewline " ($time seconds)"
9
+ }
10
+ puts ""
11
}
12
13
proc fast_route {} {
0 commit comments