加一点点inline
This commit is contained in:
parent
4109905bc6
commit
4da9434d46
@ -118,19 +118,19 @@ struct Scheduler {
|
|||||||
Add(std::numeric_limits<u64>::max(), EventClass::EndOfQueue);
|
Add(std::numeric_limits<u64>::max(), EventClass::EndOfQueue);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto GetTimestampNow() const -> u64 {
|
auto ALWAYS_INLINE GetTimestampNow() const -> u64 {
|
||||||
return timestamp_now;
|
return timestamp_now;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetTimestampNow(u64 timestamp) {
|
void ALWAYS_INLINE SetTimestampNow(u64 timestamp) {
|
||||||
timestamp_now = timestamp;
|
timestamp_now = timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto GetTimestampTarget() const -> u64 {
|
auto ALWAYS_INLINE GetTimestampTarget() const -> u64 {
|
||||||
return heap[0]->timestamp;
|
return heap[0]->timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto GetRemainingCycleCount() const -> int {
|
auto ALWAYS_INLINE GetRemainingCycleCount() const -> int {
|
||||||
return int(GetTimestampTarget() - GetTimestampNow());
|
return int(GetTimestampTarget() - GetTimestampNow());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user