class Timer

Defined at line 176 of file ../../src/firmware/gigaboot/cpp/utils.h

A wrapper around a UEFI timer.

Public Methods

void Timer (efi_system_table * sys)

Defined at line 184 of file ../../src/firmware/gigaboot/cpp/utils.h

void Timer ()

Defined at line 185 of file ../../src/firmware/gigaboot/cpp/utils.h

void Timer (const Timer & )

Defined at line 186 of file ../../src/firmware/gigaboot/cpp/utils.h

void Timer (Timer && )

Defined at line 187 of file ../../src/firmware/gigaboot/cpp/utils.h

Timer & operator= (const Timer & )

Defined at line 188 of file ../../src/firmware/gigaboot/cpp/utils.h

Timer & operator= (Timer && )

Defined at line 189 of file ../../src/firmware/gigaboot/cpp/utils.h

void ~Timer ()

Defined at line 191 of file ../../src/firmware/gigaboot/cpp/utils.h

fit::result<efi_status> SetTimer (efi_timer_delay type, zx::duration timeout)

Configure the timer's behavior.

Both 0 and zx::duration::infinite() are valid values for timeout.

See the comment for CheckTimer for their semantics.

Defined at line 466 of file ../../src/firmware/gigaboot/cpp/utils.cc

Status CheckTimer ()

Check to see if the timer has expired or if an error has occurred.

A timer set with a duration of 0 will ALWAYS return Status::kReady.

A timer set with an infinite duration will ALWAYS return Status::kWaiting.

Calling CheckTimer on a timer that has not been set will return Status::kError.

Defined at line 510 of file ../../src/firmware/gigaboot/cpp/utils.cc

fit::result<efi_status> Cancel ()

Cancel the timer.

Defined at line 497 of file ../../src/firmware/gigaboot/cpp/utils.cc

Enumerations

enum Status
Name Value
kReady 0
kWaiting 1
kError 2

Defined at line 178 of file ../../src/firmware/gigaboot/cpp/utils.h