Skip to content

Commit f7f3d18

Browse files
janherlingmeta-codesync[bot]
authored andcommitted
Using fixed enum values in TimestampConverter
Summary: $title Reviewed By: enpe Differential Revision: D87687871 Privacy Context Container: L1192943 fbshipit-source-id: 44d79672c4f5a6fdcf9748b93dabaf5da32ad8df
1 parent 3cc667c commit f7f3d18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

impl/ocean/base/Timestamp.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,25 +320,25 @@ class OCEAN_BASE_EXPORT TimestampConverter
320320
/// An invalid time domain.
321321
TD_INVALID = 0u,
322322
/// The monotonically increasing time domain defined in nanoseconds, not increasing during system sleep.
323-
TD_MONOTONIC,
323+
TD_MONOTONIC = 1u,
324324

325325
#ifdef OCEAN_BASE_TIMESTAMP_BOOTTIME_AVAILABLE
326326
/// The monotonically increasing time domain defined in nanoseconds, increasing during system sleep, not available on Windows.
327-
TD_BOOTTIME,
327+
TD_BOOTTIME = 2u,
328328
#endif
329329

330330
#ifdef OCEAN_BASE_TIMESTAMP_UPTIMERAW_AVAILABLE
331331
/// The monotonically increasing time domain defined in nanoseconds, the time the system has been awake since the last time it was restarted.
332-
TD_UPTIME_RAW,
332+
TD_UPTIME_RAW = 3u,
333333
#endif
334334

335335
#ifdef OCEAN_BASE_TIMESTAMP_VIRTUAL_COUNTER_REGISTER_AVAILABLE
336-
TD_VIRTUAL_COUNTER_REGISTER,
336+
TD_VIRTUAL_COUNTER_REGISTER = 4u,
337337
#endif
338338

339339
#ifdef OCEAN_BASE_TIMESTAMP_CUSTOM_POSIX_AVAILABLE
340340
/// A custom POSIX clock id specified by the user.
341-
TD_CUSTOM_POSIX
341+
TD_CUSTOM_POSIX = 5u
342342
#endif
343343
};
344344

0 commit comments

Comments
 (0)