def _compute_hms(tot_time):
    """
    Computes hours, minutes, seconds from total time in seconds.
    """
    hrs = tot_time // 3600
    mins = (tot_time - hrs * 3600) // 60
    secs = (tot_time - hrs * 3600 - mins * 60)
    return hrs, mins, secs