Searched refs:time_diff (Results 1 – 1 of 1) sorted by relevance
73 time_t time_diff; in measure() local94 time_diff = curr_time - last_time; in measure()96 if (last_state == 1) active_time += time_diff; in measure()97 else if (last_state == 0) sleep_time += time_diff; in measure()98 else unknown_time += time_diff; in measure()