- 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
|
self.isOn = 1
|
||||||
|
|
||||||
def log(self, s):
|
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):
|
def process(self):
|
||||||
isOn = self.isOn
|
isOn = self.isOn
|
||||||
|
|||||||
@@ -129,8 +129,8 @@ class Controller(TimerListener):
|
|||||||
self.log("Wait user input!")
|
self.log("Wait user input!")
|
||||||
|
|
||||||
def log(self, s):
|
def log(self, s):
|
||||||
now = time.time()
|
now = time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime())
|
||||||
print("{:.2f}: {}".format(now, s))
|
print("{}: {}".format(now, s))
|
||||||
|
|
||||||
def report(self):
|
def report(self):
|
||||||
self.log("Temp SOLL {} °C".format(self.ctrl_theta_soll))
|
self.log("Temp SOLL {} °C".format(self.ctrl_theta_soll))
|
||||||
|
|||||||
Reference in New Issue
Block a user