From 701b4c2248249cb723e8b47a5072445364688187 Mon Sep 17 00:00:00 2001 From: mwatts272 Date: Fri, 30 Aug 2013 15:40:05 -0400 Subject: [PATCH] Update initialization of class to define customer_timers. --- docs/scripts.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/scripts.rst b/docs/scripts.rst index 530ca3a..7fbf874 100644 --- a/docs/scripts.rst +++ b/docs/scripts.rst @@ -229,6 +229,10 @@ this example generates HTTP GETs, using httplib, with detailed timing:: import time class Transaction(object): + + def __init__(self): + self.custom_timers = {} + def run(self): conn = httplib.HTTPConnection('www.example.com') start = time.time()