ETA.m¶
Basic Information¶
USAGE: [str, sec] = ETA(frac)
PURPOSE: Estimate day and time that lengthy calculations will finish
INPUTS: frac, fraction of calculations that have been completed
OUTPUTS: str, string with date and time when calculations will finish
sec, number of seconds remaining until calculations finish
EXAMPLE:
ETA(0) Reset timer
for i = 1:n
Calculation
fprintf(char(8+zeros(1,45)))
fprintf('Calculations will finish s',ETA(i/n))
end
disp(' ')