[#absl-Ceil] = xref:absl.adoc[absl]::Ceil :relfileprefix: ../ :mrdocs: Returns the ceiling of a duration using the passed duration unit to its smallest value not less than the duration. == Synopsis Declared in `<absl/time/time.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/Duration.adoc[Duration] Ceil( xref:absl/Duration.adoc[Duration] d, xref:absl/Duration.adoc[Duration] unit); ---- == Description Example: absl::Duration d = absl::Nanoseconds(123456789); absl::Duration c = absl::Ceil(d, absl::Microseconds(1)); // 123457us == Return Value `d` rounded up to a multiple of `unit`. == Parameters [cols="1,4"] |=== | Name| Description | *d* | The duration to take the ceiling of. | *unit* | The unit to take the ceiling to. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#