Print warp duration.

This commit is contained in:
Casper V. Kristensen 2019-02-08 22:18:09 +01:00
parent 396678e313
commit 93f78cf2a8
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -2,12 +2,14 @@
function warp_to { function warp_to {
parameter timestamp. parameter timestamp.
KUNIVERSE:timewarp:warpto(timestamp). // TODO: improve. KUNIVERSE:timewarp:warpto(timestamp). // TODO: improve.
wait until TIME:seconds >= timestamp. // TODO wait until TIME:seconds >= timestamp. // TODO
} }
function warp_for { function warp_for {
parameter seconds. parameter seconds.
print "Warping for " + round(seconds, 1) + " seconds".
return warp_to(TIME:seconds + seconds). return warp_to(TIME:seconds + seconds).
} }