Returns the ceiling of a duration using the passed duration unit to its smallest value not less than the duration.
Example:
absl::Duration d = absl::Nanoseconds(123456789); absl::Duration c = absl::Ceil(d, absl::Microseconds(1)); // 123457us
d rounded up to a multiple of unit.
| Name | Description |
|---|---|
| d | The duration to take the ceiling of. |
| unit | The unit to take the ceiling to. |