hacktober fest #214
2 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue