time_remaining_start: Start a time remaining indicator

Description Usage Arguments Value Examples

View source: R/UTIL-Time_remaining.R

Description

This function starts a time remaining indicator.

Usage

1

Arguments

max_scan

The number of scans that will be performed during the time the indicator is shown.

Value

A function to be called with the current scan number

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.