time_remaining_print: Iterate a time remaining indicator

Description Usage Arguments Value Examples

View source: R/UTIL-Time_remaining.R

Description

This function iterates a time remaining indicator. It should not be called manually, rather the function returned from time_remaining_start should be used.

Usage

1
time_remaining_print(current_scan = NULL, envir = NULL)

Arguments

current_scan

The current scan number.

Value

The environment containing the timing parameters.

Examples

1
2
3
4
5
6
7
8
time_remaining_start(10)
f <- time_remaining_start(10)
for (i in 1:10) {
  Sys.sleep(1)
  f(i)
  Sys.sleep(1)
  f()
}

jmstrat/NMR.Utils documentation built on July 14, 2019, 11:35 p.m.