<gh_stars>1-10
from time import clock
import logging

#~ class Timer(object):
  #~ 
  #~ def start(self,s):
    #~ self.s = s
    #~ self.started = clock()    
  #~ 
  #~ def stop(self):
    #~ self.stopped = clock()
    #~ t = self.stopped - self.started
    #~ self.log(t)
  #~ 
  #~ def log(self, t):      
    #~ line = self.s + ',' + str(t)
    #~ logging.info(line)

from time import clock
import logging

#~ class Timer(object):
  #~ 
  #~ def start(self,s):
    #~ self.s = s
    #~ self.started = clock()    
  #~ 
  #~ def stop(self):
    #~ self.stopped = clock()
    #~ t = self.stopped - self.started
    #~ self.log(t)
  #~ 
  #~ def log(self, t):      
    #~ line = self.s + ',' + str(t)
    #~ logging.info(line)
#~ class Timer(object): #~ #~ def start(self,s): #~ self.s = s #~ self.started = clock() #~ #~ def stop(self): #~ self.stopped = clock() #~ t = self.stopped - self.started #~ self.log(t) #~ #~ def log(self, t): #~ line = self.s + ',' + str(t) #~ logging.info(line)