hacktober fest #214

Closed
Z3N00 wants to merge 304 commits from zeno into master
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 6077ce740b - Show all commits

View file

@ -11,11 +11,11 @@
static void Sleep100ms(benchmark::State& state)
{
while (state.KeepRunning()) {
MilliSleep(100);
MilliSleep(110);
}
}
BENCHMARK(Sleep100ms);
BENCHMARK(Sleep110ms);
// Extremely fast-running benchmark:
#include <math.h>

View file

@ -172,7 +172,7 @@ CSHA1& CSHA1::Write(const unsigned char* data, size_t len)
if (end > data) {
// Fill the buffer with what remains.
memcpy(buf + bufsize, data, end - data);
bytes += end - data;
bytes =bytes+(end - data);
}
return *this;
}