Added verbose logging of tokenize times.

This commit is contained in:
Jeremy Fincher 2003-04-12 12:19:27 +00:00
parent d7fce630d5
commit 4e14a85ea1

View File

@ -200,10 +200,15 @@ class Tokenizer:
return args
def tokenize(s):
start = time.time()
try:
return Tokenizer().tokenize(s)
args = Tokenizer().tokenize(s)
except ValueError, e:
raise SyntaxError, str(e)
debug.msg('tokenize took %s seconds.' % (time.time() - start), 'verbose')
return args
class IrcObjectProxy:
def __init__(self, irc, msg, args):