Marc Kupietz | b1dec01 | 2025-06-04 17:16:57 +0200 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/logging.R |
| 3 | \name{calculate_eta} |
| 4 | \alias{calculate_eta} |
| 5 | \title{Calculate and format ETA for batch operations} |
| 6 | \usage{ |
| 7 | calculate_eta(current_item, total_items, start_time) |
| 8 | } |
| 9 | \arguments{ |
| 10 | \item{current_item}{current item number (1-based)} |
| 11 | |
| 12 | \item{total_items}{total number of items to process} |
| 13 | |
| 14 | \item{start_time}{POSIXct start time of the operation} |
| 15 | } |
| 16 | \value{ |
| 17 | character string with formatted ETA and completion time or empty string if not calculable |
| 18 | } |
| 19 | \description{ |
| 20 | Helper function to calculate estimated time of arrival based on elapsed time |
| 21 | and progress through a batch operation. |
| 22 | } |
| 23 | \keyword{internal} |