File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
c-dependencies/js-compute-runtime Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -83,22 +83,16 @@ void markWizeningAsFinished();
83
83
84
84
class FastlyOptions {
85
85
private:
86
- uint8_t mask = 0 ;
86
+ bool experimental_high_resolution_time_methods_enabled = false ;
87
87
88
88
public:
89
- static constexpr const uint8_t experimental_high_resolution_time_methods_enabled_flag = 1 << 0 ;
90
-
91
89
FastlyOptions () = default ;
92
90
93
91
bool getExperimentalHighResolutionTimeMethodsEnabled () {
94
- return this ->mask & experimental_high_resolution_time_methods_enabled_flag ;
92
+ return this ->experimental_high_resolution_time_methods_enabled ;
95
93
};
96
94
void setExperimentalHighResolutionTimeMethodsEnabled (bool set) {
97
- if (set) {
98
- this ->mask |= experimental_high_resolution_time_methods_enabled_flag;
99
- } else {
100
- this ->mask &= ~experimental_high_resolution_time_methods_enabled_flag;
101
- }
95
+ this ->experimental_high_resolution_time_methods_enabled = set;
102
96
};
103
97
};
104
98
You can’t perform that action at this time.
0 commit comments