def starttiming(fn):
    def new(*args, **kw):
        obj = args[0]
        if obj.firststarttime == 0:
            obj.firststarttime = time.time()
        elif obj.secondstarttime == 0:
            obj.secondstarttime = time.time()
        profile_on()
        return fn(*args, **kw)
    return new
Decorator used to start timing.
dataset/ETHPy150Open denizalti/concoord/concoord/utils.py/starttiming