- improved time output
git-svn-id: http://moon:8086/svn/projects/HendiControl@287 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -12,7 +12,8 @@ class AStirrer(abc.ABC):
|
||||
self.isOn = 1
|
||||
|
||||
def log(self, s):
|
||||
print("{:.2f}: {}".format(time.time(), s))
|
||||
now = time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime())
|
||||
print("{}: {}".format(now, s))
|
||||
|
||||
def process(self):
|
||||
isOn = self.isOn
|
||||
|
||||
@@ -129,8 +129,8 @@ class Controller(TimerListener):
|
||||
self.log("Wait user input!")
|
||||
|
||||
def log(self, s):
|
||||
now = time.time()
|
||||
print("{:.2f}: {}".format(now, s))
|
||||
now = time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime())
|
||||
print("{}: {}".format(now, s))
|
||||
|
||||
def report(self):
|
||||
self.log("Temp SOLL {} °C".format(self.ctrl_theta_soll))
|
||||
|
||||
Reference in New Issue
Block a user