Skip to content

Commit 9834505

Browse files
malexzxbjori
authored andcommitted
CDRIVER-1973 Improve test results
1 parent bdc68dd commit 9834505

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/TestSuite.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ _Clock_GetMonotonic (struct timespec *ts) /* OUT */
146146

147147
/* milliseconds -> microseconds -> nanoseconds*/
148148
ts->tv_nsec = (ticks % 1000) * 1000 * 1000;
149+
#elif defined(__hpux__)
150+
uint64_t nsec = gethrtime ();
151+
152+
ts->tv_sec = (int64_t) (nsec / 1e9);
153+
ts->tv_nsec = (int32_t) (nsec - (double) ts->tv_sec * 1e9);
149154
#else
150155
#warning "Monotonic clock is not yet supported on your platform."
151156
#endif

0 commit comments

Comments
 (0)