Пример #1
0
 def start_timer(my, name="top"):
     from container import Container
     if not Container.has("Base:total:%s" % name):
         Container.put("Base:total:%s" % name, 0)
     start = time.time()
     Container.put("Base:start:%s" % name, start)
Пример #2
0
 def start_timer(self, name="top"):
     from container import Container
     if not Container.has("Base:total:%s" % name):
         Container.put("Base:total:%s" % name, 0)
     start = time.time()
     Container.put("Base:start:%s" % name, start)