Advanced ETA calculation that excludes cached responses and uses median of recent timing data for more stable estimates. This is particularly useful for operations where some responses may be cached and much faster.
calculate_sophisticated_eta(
individual_times,
current_item,
total_items,
cache_threshold = 0.1,
window_size = 5
)
list with eta_seconds, estimated_completion_time, and is_cached flag
numeric vector of individual item processing times
current item number (1-based)
total number of items to process
minimum time in seconds to consider as non-cached (default: 0.1)
number of recent non-cached times to use for median calculation (default: 5)