Skip to content

Commit

Permalink
Merge pull request #248 from hpi-swa/dev
Browse files Browse the repository at this point in the history
Ensure `finish` is set (#245)
  • Loading branch information
fniephaus committed Dec 8, 2016
2 parents 97e1969 + 010a498 commit fefd83f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
@@ -1,15 +1,13 @@
folding
travisTime: aTitle foldName: foldName on: aStream block: aBlock
| start finish timerName |
| timerName start |
timerName := foldName, '_timer_', self travisID.
aStream
nextPutAll: 'travis_time:start:', timerName, self newLine, self ansiClear;
nextPutAll: (self foldTitle: aTitle); flush.
[
start := Time millisecondClockValue * 1000000.
aBlock value.
finish := Time millisecondClockValue * 1000000
] ensure: [ | duration |
start := Time millisecondClockValue * 1000000.
aBlock ensure: [ | finish duration |
finish := Time millisecondClockValue * 1000000.
duration := finish - start.
aStream nextPutAll: self newLine, 'travis_time:end:', timerName, ':start=', start asString,
',finish=', finish asString, ',duration=', duration asString, self newLine, self ansiClear; flush ]
Expand Up @@ -82,7 +82,7 @@
"travisFold:id:block:" : "fn 10/7/2016 21:27",
"travisFold:id:on:block:" : "fn 10/7/2016 23:55",
"travisID" : "fn 10/10/2016 23:33",
"travisTime:foldName:on:block:" : "fn 10/10/2016 23:35",
"travisTime:foldName:on:block:" : "fn 12/8/2016 09:53",
"workingDirectory" : "fn 10/16/2016 16:28" },
"instance" : {
"compatibleConfigurationsFor:" : "fn 11/13/2016 22:31",
Expand Down

Large diffs are not rendered by default.

0 comments on commit fefd83f

Please sign in to comment.