if {![info exists myproc_running]} { timer 20 myproc set myproc_running 1 } proc myproc {} { # your stuff here ... # ... timer 20 myproc return 1 }