(time, value, total)
| 16 | |
| 17 | // add new values to calculation buffer |
| 18 | update(time, value, total){ |
| 19 | this.valueBuffer.push(value); |
| 20 | this.timeBuffer.push(time); |
| 21 | |
| 22 | // trigger recalculation |
| 23 | this.calculate(total-value); |
| 24 | } |
| 25 | |
| 26 | // fetch estimated time |
| 27 | getTime(){ |
no test coverage detected