blob: 6c4d6514b033bd744bfd61dfdb37fba080d7d1b2 [file] [log] [blame]
Marc Kupietzc6160982025-06-24 15:57:51 +02001% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/logging.R
3\name{calculate_sophisticated_eta}
4\alias{calculate_sophisticated_eta}
5\title{Calculate sophisticated ETA using median of recent non-cached times}
6\usage{
7calculate_sophisticated_eta(
8 individual_times,
9 current_item,
10 total_items,
11 cache_threshold = 0.1,
12 window_size = 5
13)
14}
15\arguments{
16\item{individual_times}{numeric vector of individual item processing times}
17
18\item{current_item}{current item number (1-based)}
19
20\item{total_items}{total number of items to process}
21
22\item{cache_threshold}{minimum time in seconds to consider as non-cached (default: 0.1)}
23
24\item{window_size}{number of recent non-cached times to use for median calculation (default: 5)}
25}
26\value{
27list with eta_seconds, estimated_completion_time, and is_cached flag
28}
29\description{
30Advanced ETA calculation that excludes cached responses and uses median
31of recent timing data for more stable estimates. This is particularly
32useful for operations where some responses may be cached and much faster.
33}
34\keyword{internal}