Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/org.eclipse.etrice.modellib/models/ALogService.room13
1 files changed, 3 insertions, 10 deletions
diff --git a/runtime/org.eclipse.etrice.modellib/models/ALogService.room b/runtime/org.eclipse.etrice.modellib/models/ALogService.room
index 26047225e..3a946c1ce 100644
--- a/runtime/org.eclipse.etrice.modellib/models/ALogService.room
+++ b/runtime/org.eclipse.etrice.modellib/models/ALogService.room
@@ -58,8 +58,7 @@ RoomModel room.basic.service.logging {
<internalLog: log>
}
action {
- "long s = Long.valueOf(data.timeStamp);"
- "p.println(\"Timestamp: \" + Long.toString(s-tStart) + \"ms\");"
+ "p.println(\"Timestamp: \" + Long.toString(data.timeStamp-tStart) + \"ms\");"
"p.println(\"SenderInstance: \"+ data.sender);"
"p.println(\"UserString: \" + data.userString);"
"p.println(\"--------------------------------------------------\");"
@@ -95,8 +94,7 @@ RoomModel room.basic.service.logging {
"long s;"
"if (logLevel>this.logLevel){"
"d.userString=userString;"
- "s=System.currentTimeMillis();"
- "d.timeStamp=Long.toString(s);"
+ "d.timeStamp=System.currentTimeMillis();"
"d.sender=getInstancePath();"
"if (getPeerAddress()!=null)"
"getPeerMsgReceiver().receive(new EventWithDataMessage(getPeerAddress(), IN_internalLog, d));"
@@ -105,15 +103,10 @@ RoomModel room.basic.service.logging {
}
}
- DataClass LogData {
- Attribute logLevel: int32
- Attribute userString: string
- }
-
DataClass InternalLogData {
Attribute userString: string
Attribute sender: string
- Attribute timeStamp: string
+ Attribute timeStamp: int64
}
} \ No newline at end of file

Back to the top