Searched refs:time_in_units (Results 1 – 1 of 1) sorted by relevance
70 static gpr_timespec to_seconds_from_sub_second_time(int64_t time_in_units, in to_seconds_from_sub_second_time() argument74 if (time_in_units == INT64_MAX) { in to_seconds_from_sub_second_time()76 } else if (time_in_units == INT64_MIN) { in to_seconds_from_sub_second_time()79 if (time_in_units >= 0) { in to_seconds_from_sub_second_time()80 out.tv_sec = time_in_units / units_per_sec; in to_seconds_from_sub_second_time()82 out.tv_sec = (-((units_per_sec - 1) - (time_in_units + units_per_sec)) / in to_seconds_from_sub_second_time()87 static_cast<int32_t>((time_in_units - out.tv_sec * units_per_sec) * in to_seconds_from_sub_second_time()94 static gpr_timespec to_seconds_from_above_second_time(int64_t time_in_units, in to_seconds_from_above_second_time() argument98 if (time_in_units >= INT64_MAX / secs_per_unit) { in to_seconds_from_above_second_time()100 } else if (time_in_units <= INT64_MIN / secs_per_unit) { in to_seconds_from_above_second_time()[all …]