mirror of
https://codeberg.org/wownero/RandomX.git
synced 2026-11-16 09:33:58 +01:00
Large page support for cache
Bug fixes
This commit is contained in:
+2
-2
@@ -53,7 +53,7 @@ public:
|
||||
isRunning = false;
|
||||
}
|
||||
}
|
||||
double getElapsed() {
|
||||
double getElapsed() const {
|
||||
return getElapsedNanosec() / 1e+9;
|
||||
}
|
||||
private:
|
||||
@@ -63,7 +63,7 @@ private:
|
||||
uint64_t elapsed;
|
||||
bool isRunning;
|
||||
|
||||
uint64_t getElapsedNanosec() {
|
||||
uint64_t getElapsedNanosec() const {
|
||||
uint64_t elns = elapsed;
|
||||
if (isRunning) {
|
||||
chrono_t endMark = std::chrono::high_resolution_clock::now();
|
||||
|
||||
Reference in New Issue
Block a user