What's not working here? There's an indent problem above, but I assume that's only in the formatting of the post...
Assuming the time
variable is defined at the script level (and it must be since it's not defined in your _process()
function), that should work...