old_contents: import time
  from jwl import deployconfig
  import logging
  
  logger = logging.getLogger('ajaxdisplay.GlobalTimer')
  
  
  starttime = None
  buffer = None
  
  def start():
      global starttime, buffer
      starttime = time.time()
      buffer = []
  
  def check(msg):
      if starttime is not None:
          buffer.append(msg + ': ' + str(time.time() - starttime))
          
  def show_output():
      if buffer:
          for l in buffer: logger.debug(l)
new_contents: import time
  from jwl import deployconfig
  import logging
  
  logger = logging.getLogger('ajaxdisplay.GlobalTimer')
  
  
  starttime = None
  buffer = None
  
  def start():
      global starttime, buffer
      starttime = time.time()
      # buffer = []
  
  def check(msg):
      if starttime is not None:
          # buffer.append(msg + ': ' + str(time.time() - starttime))
          logger.debug(msg + ': ' + str(time.time() - starttime))
          
  def show_output():
      # if buffer:
          # for l in buffer: logger.debug(l)
      pass
      
subject: make global timer give immediate feedback