Skip to contents

Estimate the remaining time in the algorithm

Usage

computeTimeRemaining(nsi, timer0, nsims, nprints = 2)

Arguments

nsi

current iteration

timer0

initial timer value from proc.time()[3]

nsims

total number of simulations

nprints

total number of printed updates

Value

estimate of remaining time