You can do it either way, but it's probably easier just to put the start code at the begining of main, and the end code just before you print out the templates. Since you don't really need to count the time to print the templates in the search anyway.
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ