mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
Kernel: Use TRY() when validating clock_id in TimeManagement
Gets rid of a bit of code duplication, and makes the API more consistent with the style we are moving towards.
This commit is contained in:
parent
e167cafa70
commit
d05fa14e52
3 changed files with 6 additions and 8 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
static bool is_initialized();
|
||||
static TimeManagement& the();
|
||||
|
||||
static bool is_valid_clock_id(clockid_t);
|
||||
static ErrorOr<void> validate_clock_id(clockid_t);
|
||||
Time current_time(clockid_t) const;
|
||||
Time monotonic_time(TimePrecision = TimePrecision::Coarse) const;
|
||||
Time monotonic_time_raw() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue