Skip to content

Commit fcba609

Browse files
add start time in millis and initialize it when setting startTime
I do not use starTime itself, since I would need to convert it and deal with different time zones
1 parent dcf4ab3 commit fcba609

File tree

1 file changed

+6
-0
lines changed
  • sqldev/src/main/java/org/utplsql/sqldev/model/runner

1 file changed

+6
-0
lines changed

sqldev/src/main/java/org/utplsql/sqldev/model/runner/Run.xtend

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Run extends AbstractModel {
3737
String serverOutput
3838
LinkedHashMap<String, Test> tests
3939
String status
40+
Long start
4041

4142
new(String reporterId, String connectionName, List<String> pathList) {
4243
this.reporterId = reporterId
@@ -46,6 +47,11 @@ class Run extends AbstractModel {
4647
this.tests = new LinkedHashMap<String, Test>
4748
}
4849

50+
def void setStartTime(String startTime) {
51+
this.startTime = startTime
52+
start = System.currentTimeMillis
53+
}
54+
4955
def getName() {
5056
val time = startTime.substring(11,19)
5157
val conn = connectionName?.substring(15)

0 commit comments

Comments
 (0)