# ======== Time stats ========
#   now: 1713866392.601657
#   on_frac: 0.999491
#   connected_frac: -1.000000
#   cpu_and_network_available_frac: 0.999992
#   active_frac: 0.999992
#   gpu_active_frac: 0.999992
#   client_start_time: Tue Apr 16 14:45:29 2024

#   previous_uptime: 3884.003729
#   session_active_duration: 594842.232585
#   session_gpu_active_duration: 594842.232585
#   total_start_time: Mon Apr 15 22:52:40 2024

#   total_duration: 651143.128246
#   total_active_duration: 651133.088290
#   total_gpu_active_duration: 651133.088290

class BoincTimeStats:
    def __init__(
            self, 
            now, 
            on_frac, 
            connected_frac, 
            cpu_and_network_available_frac,
            active_frac, 
            gpu_active_frac, 
            client_start_time, 
            previous_uptime,
            session_active_duration, 
            session_gpu_active_duration, 
            total_start_time,
            total_duration, 
            total_active_duration, 
            total_gpu_active_duration
        ):
        self.now = now
        self.on_frac = on_frac
        self.connected_frac = connected_frac
        self.cpu_and_network_available_frac = cpu_and_network_available_frac
        self.active_frac = active_frac
        self.gpu_active_frac = gpu_active_frac
        self.client_start_time = client_start_time
        self.previous_uptime = previous_uptime
        self.session_active_duration = session_active_duration
        self.session_gpu_active_duration = session_gpu_active_duration
        self.total_start_time = total_start_time
        self.total_duration = total_duration
        self.total_active_duration = total_active_duration
        self.total_gpu_active_duration = total_gpu_active_duration