summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/clock_types.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-01-04 09:09:56 +0100
committerbunnei <bunneidev@gmail.com>2020-01-04 19:48:31 +0100
commit361285add978c5720bc16344a9fe41fa93374505 (patch)
treeb8dc12be3311368c0843fe50d0bd548067fab083 /src/core/hle/service/time/clock_types.h
parentservice: time: Implement GetClockSnapshotFromSystemClockContext. (diff)
downloadyuzu-361285add978c5720bc16344a9fe41fa93374505.tar
yuzu-361285add978c5720bc16344a9fe41fa93374505.tar.gz
yuzu-361285add978c5720bc16344a9fe41fa93374505.tar.bz2
yuzu-361285add978c5720bc16344a9fe41fa93374505.tar.lz
yuzu-361285add978c5720bc16344a9fe41fa93374505.tar.xz
yuzu-361285add978c5720bc16344a9fe41fa93374505.tar.zst
yuzu-361285add978c5720bc16344a9fe41fa93374505.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/time/clock_types.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/hle/service/time/clock_types.h b/src/core/hle/service/time/clock_types.h
index 3d5b0ff1e..72e1921ec 100644
--- a/src/core/hle/service/time/clock_types.h
+++ b/src/core/hle/service/time/clock_types.h
@@ -4,8 +4,6 @@
#pragma once
-#include <boost/safe_numerics/safe_integer.hpp>
-
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "common/uuid.h"
@@ -26,13 +24,7 @@ struct SteadyClockTimePoint {
return ERROR_TIME_MISMATCH;
}
- const boost::safe_numerics::safe<s64> this_time_point{time_point};
- const boost::safe_numerics::safe<s64> other_time_point{other.time_point};
- try {
- span = other_time_point - this_time_point;
- } catch (const std::exception&) {
- return ERROR_OVERFLOW;
- }
+ span = other.time_point - time_point;
return RESULT_SUCCESS;
}