diff options
author | snappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143> | 2011-04-11 09:07:01 +0000 |
---|---|---|
committer | snappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143> | 2011-04-11 09:07:01 +0000 |
commit | bbe6defd5fb1df14578ddc389475fd1a64077eb5 (patch) | |
tree | 0d0d66cbb62e0ed0e4af59378652cb43e1d9ded5 /snappy-test.h | |
parent | 69e3b45891cafc6f56be8cdaf398253b946d1015 (diff) | |
download | snappy-bbe6defd5fb1df14578ddc389475fd1a64077eb5.tar.gz |
Fix public issue #29: Write CPU timing code for Windows, based on GetProcessTimes()
instead of getursage().
I thought I'd already committed this patch, so that the 1.0.1 release already
would have a Windows-compatible snappy_unittest, but I'd seemingly deleted it
instead, so this is a reconstruction.
R=csilvers
DELTA=43 (39 added, 3 deleted, 1 changed)
Revision created by MOE tool push_codebase.
MOE_MIGRATION=1295
git-svn-id: http://snappy.googlecode.com/svn/trunk@28 03e5f5b5-db94-4691-08a0-1a8bf15f6143
Diffstat (limited to 'snappy-test.h')
-rw-r--r-- | snappy-test.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/snappy-test.h b/snappy-test.h index e99b884..18f5b1b 100644 --- a/snappy-test.h +++ b/snappy-test.h @@ -40,7 +40,10 @@ #include <sys/mman.h> #endif +#ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> +#endif + #include <sys/time.h> #include <string> |