R/eta.R

Defines functions eta

Documented in eta

eta = function(i, total, start){
    #start = proc.time()[3]
    c = (total-i)+1
    if(c!=total){
        timenow = proc.time()[3]
        timeper = (timenow-start)/i
        timeleft = c*timeper*1.1 # 1.1 uncertainty factor
        eta = nicetime(timeleft)
    }else{
        eta = ""
    }
    return(eta)
}

Try the astro package in your browser

Any scripts or data that you put into this service are public.

astro documentation built on May 2, 2019, 2:14 a.m.