- improved time output

git-svn-id: http://moon:8086/svn/projects/HendiControl@287 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-05-04 07:49:53 +00:00
parent fd5d19a96f
commit 659c0c3073
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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
+2 -2
View File
@@ -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))