def ixtime(t=None, force=False): if t is None: t = now(force) r = unixtime(t) - unixtime(realStartup if force else startup) return "%.1f" % (r, )
def ttime(): return time() - unixtime(startup)
def ixtime(t=None,force=False): if t is None: t = now(force) r = unixtime(t)-unixtime(realStartup if force else startup) return "%.1f" % (r,)
def ttime(): return time()-unixtime(startup)
def value(self): if self._plinger is None: return None return unixtime(self.end)-unixtime(now(self.force))
def ixtime(t,_=None): return unixtime(t)
def _set_pling(self): timeout = unixtime(self.end) - unixtime(now(self.force)) if timeout <= 0.1: timeout = 0.1 self.stop_job("_plinger") self.start_job("_plinger",self._pling, timeout)
def ixtime(t, _=None): return unixtime(t)
def value(self): if self._plinger is None: return None return unixtime(self.end) - unixtime(now(self.force))
def _set_pling(self): timeout = unixtime(self.end) - unixtime(now(self.force)) if timeout <= 0.1: timeout = 0.1 self.stop_job("_plinger") self.start_job("_plinger", self._pling, timeout)
def msg(self): return "update %s %d:%s" % (self.file.filename,int(unixtime(now())),":".join((str(x) for x in self.val)))