X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Ftest%2FSpookyHashV2Test.cpp;h=084760cdd35ad0def3fff54b45db5c647cdf4ec7;hb=406098e73e5c7f4e1e89b6b7e36b865587d509e9;hp=1fa0883db9f53bb8736dea7945a4c93ae3791ff4;hpb=275ca94d04e44f28cfa411668eb1c1dd8db90b80;p=folly.git diff --git a/folly/test/SpookyHashV2Test.cpp b/folly/test/SpookyHashV2Test.cpp index 1fa0883d..084760cd 100644 --- a/folly/test/SpookyHashV2Test.cpp +++ b/folly/test/SpookyHashV2Test.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2015 Facebook, Inc. + * Copyright 2017 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,22 +21,22 @@ #endif #include -#include +#include +#include #include #include #include #include #include -#include -#include +#include using namespace ::folly::hash; static bool failed = false; -static uint64_t GetTickCount() { +static uint64_t GetClockTickCount() { timespec ts; clock_gettime(CLOCK_REALTIME, &ts); return ts.tv_sec * 1000 + ts.tv_nsec / 1000000; // milliseconds @@ -263,41 +263,41 @@ void DoTimingBig(int seed) memset(buf[i], (char)seed, BUFSIZE); } - uint64_t a = GetTickCount(); + uint64_t a = GetClockTickCount(); uint64_t hash1 = seed; uint64_t hash2 = seed; for (uint64_t i=0; i