Skip to contents

Returns how far, in seconds, the RAM is 'ahead' of the System time. Used for convenience in ram.update().

See vignette("timing") for more info; the x-axis of the diagrams are time.ram().

Usage

time.ram()

Arguments

RAM

RAM object.

Details

= RAM$time - time.sec()

Examples

if (FALSE) { # \dontrun{
#the time.ram() at the end of each frame is stored in RAM$debug$ahead.
#Plotting it can help visualize how the RAM stays synced in time:
quickload(BadApple)
#^C after 10 seconds or so
plot(RAM$debug$ahead, type='l', xlab='Tick')
} # }