I'd use a delay of 50 ms. 20 times a second. Also I'd use the SIGNAL event.
/timer -om 0 50 /SIGNAL -n TITLEBAR.UPDATE
ON *:SIGNAL:TITLEBAR.UPDATE: {
/titlebar <your titlebar information>
}
You could have it trigger an ALIAS but that can spell disaster if something goes wrong. Besides SIGNAL let's you modify the timer from several scripts.