diff options
author | Magdalena GrodziĆska <mag.grodzinska@gmail.com> | 2020-01-12 16:55:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 16:55:36 +0100 |
commit | 4668bc060a200149b169989bed1e6e035b61bcba (patch) | |
tree | 94aa4f0566554a689bcf2b88df936db819f718e8 /src/main/java/pl/edu/mimuw/cloudatlas/model | |
parent | 091c5f1c6f52f46734b3faf7c08ea95551e3ab74 (diff) | |
parent | f0076abd246bdf40ba4a03c0c894f6f75173eac8 (diff) |
Merge branch 'master' into advanced_kryo
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/model')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java b/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java index 3df8231..866349f 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java @@ -12,4 +12,8 @@ public class ValueUtils { public static ValueTime currentTime() { return new ValueTime(System.currentTimeMillis()); } + + public static ValueTime addToTime(ValueTime time, long millis) { + return time.addValue(new ValueDuration(millis)); + } } |