diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-09-20 01:09:32 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-09-20 01:09:32 +0000 |
commit | 1a2471411605302574df89cc82d7a3b4da0b2005 (patch) | |
tree | 513a5641f9201e2a7d374ba9ec927547f11b5732 | |
parent | ab843ae81eb445d94ed6821e45df8a782d2886e6 (diff) | |
download | libsandglass-1a2471411605302574df89cc82d7a3b4da0b2005.tar.xz |
Use .11111s instead of .1s in tests to illustrate precision.
-rw-r--r-- | tests/introspective-cputime.c | 2 | ||||
-rw-r--r-- | tests/introspective-system.c | 2 | ||||
-rw-r--r-- | tests/monotonic-cputime.c | 2 | ||||
-rw-r--r-- | tests/monotonic-realticks.c | 2 | ||||
-rw-r--r-- | tests/monotonic-system.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/introspective-cputime.c b/tests/introspective-cputime.c index b35e2f4..f96b652 100644 --- a/tests/introspective-cputime.c +++ b/tests/introspective-cputime.c @@ -30,7 +30,7 @@ main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_INTROSPECTIVE, SANDGLASS_CPUTIME }; - struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 100000000L }; + struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); diff --git a/tests/introspective-system.c b/tests/introspective-system.c index beb799f..61e3678 100644 --- a/tests/introspective-system.c +++ b/tests/introspective-system.c @@ -30,7 +30,7 @@ main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_INTROSPECTIVE, SANDGLASS_SYSTEM }; - struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 100000000L }; + struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); diff --git a/tests/monotonic-cputime.c b/tests/monotonic-cputime.c index 4d56793..7733a3a 100644 --- a/tests/monotonic-cputime.c +++ b/tests/monotonic-cputime.c @@ -30,7 +30,7 @@ main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_MONOTONIC, SANDGLASS_CPUTIME }; - struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 100000000L }; + struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); diff --git a/tests/monotonic-realticks.c b/tests/monotonic-realticks.c index c548f18..119b3bb 100644 --- a/tests/monotonic-realticks.c +++ b/tests/monotonic-realticks.c @@ -30,7 +30,7 @@ main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_MONOTONIC, SANDGLASS_REALTICKS }; - struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 100000000L }; + struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); diff --git a/tests/monotonic-system.c b/tests/monotonic-system.c index 3c8e9be..e36c6c9 100644 --- a/tests/monotonic-system.c +++ b/tests/monotonic-system.c @@ -30,7 +30,7 @@ main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_MONOTONIC, SANDGLASS_SYSTEM }; - struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 100000000L }; + struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); |