BDE 4.14.0 Production release
|
Enumerate the set of system clock types.
enum
This component provides a namespace for the enum
type bsls::SystemClockType::Enum
, which enumerates the set of system clock types. A bsls::SystemClockType
is particularly important when providing time-out values to synchronization methods where those time-outs must be consistent in environments where the system clocks may be changed.
This section illustrates intended use of this component.
The following snippets of code provide a simple illustration of using bsls::SystemClockType
.
First, we create a variable value
of type bsls::SystemClockType::Enum
and initialize it with the enumerator value bsls::SystemClockType::e_MONOTONIC
:
Now, we store the address of its ASCII representation in a pointer variable, asciiValue
, of type const char *
:
Finally, we verify the value of asciiValue
: