(*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *)

type estimates = {
  estimated_time_to_recheck: float;
  estimated_time_to_restart: float;
  estimated_time_to_init: float;
  estimated_time_per_file: float;
  estimated_files_to_recheck: int;
  estimated_files_to_init: int;
}

val init : options:Options.t -> init_time:float -> parsed_count:int -> unit Lwt.t

val record_recheck_time : options:Options.t -> total_time:float -> rechecked_files:int -> unit Lwt.t

val record_last_estimates : options:Options.t -> estimates:estimates -> unit Lwt.t

val get_init_time : unit -> float

val get_per_file_time : unit -> float
