diff options
author | Ingo Huerner <ingo_huerner@mentor.com> | 2017-07-10 09:08:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-10 09:08:41 +0200 |
commit | b438e26224a78ee456847773184c67a1784fd64c (patch) | |
tree | 5fbe63f87773e8af80e53f7798f72321efbae5d6 /test | |
parent | 15eff7b8950c712d848a65f0f692a23fd7fa9f56 (diff) | |
parent | c48c17238b5c55cc97bfcca19ca623cee276501f (diff) | |
download | persistence-client-library-b438e26224a78ee456847773184c67a1784fd64c.tar.gz |
Merge pull request #8 from tolkien-joh/master
fix error on compiling meta-ivi 12.0 for qemux86, vexpressa9
Diffstat (limited to 'test')
-rw-r--r-- | test/persistence_client_library_benchmark.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/persistence_client_library_benchmark.c b/test/persistence_client_library_benchmark.c index 3c48469..900a6ec 100644 --- a/test/persistence_client_library_benchmark.c +++ b/test/persistence_client_library_benchmark.c @@ -71,8 +71,8 @@ inline long getMsDuration(struct timespec* start, struct timespec* end) void init_benchmark(int numLoops) { int i = 0; - long durationInit = 0; - long durationDeInit = 0; + long long durationInit = 0; + long long durationDeInit = 0; struct timespec initStart, initEnd; struct timespec deInitStart, deInitEnd; int shutdownReg = PCL_SHUTDOWN_TYPE_FAST | PCL_SHUTDOWN_TYPE_NORMAL; @@ -101,7 +101,8 @@ void init_benchmark(int numLoops) void read_benchmark(int numLoops) { int ret = 0, i = 0; - long duration = 0, size = 0; + long long duration = 0; + long size = 0; struct timespec readStart, readEnd; char key[128] = { 0 }; unsigned char buffer[7168] = {0}; // 7kB |