bionic/tests
Alex Van Brunt 8d0b2dbf21 Reimplement clock(3) using clock_gettime(3)
Unlike times(), clock_gettime() is implemented as a vDSO on many architectures.
So, using clock_gettime() will return a more accurate time and do so with less
overhead because it does have the overhead of calling into the kernel.

It is also significantly more accurate because it measures the actual time in
nanoseconds rather than the number of ticks (typically 1 millisecond or more).

Bug: 17814435
Change-Id: Id4945d9f387330518f78669809639952e9227ed9
2014-10-03 18:54:28 -07:00
..
libs Add RTLD_NODELETE flag support 2014-10-01 11:09:37 -07:00
Android.build.mk Switch benchmarks and tests to libc++. 2014-09-30 10:28:30 -07:00
Android.mk Switch benchmarks and tests to libc++. 2014-09-30 10:28:30 -07:00
arpa_inet_test.cpp Use the NetBSD inet_ntop until the OpenBSD bug is fixed. 2014-05-13 19:17:46 -07:00
atexit_test.cpp Add atexit test for attributed c-tor/d-tor 2014-08-15 14:22:07 -07:00
buffer_tests.cpp Add strcmp/memcmp testing. 2013-12-03 18:42:41 -08:00
buffer_tests.h Add strcmp/memcmp testing. 2013-12-03 18:42:41 -08:00
ctype_test.cpp Upgrade our <ctype.h> implementation to OpenBSD head. 2014-04-18 10:29:16 -07:00
dirent_test.cpp Implement some of the missing LFS64 support. 2014-02-18 15:39:24 -08:00
dlext_test.cpp Don't fail a test just because we aren't root. 2014-09-03 11:30:21 -07:00
dlfcn_test.cpp Add RTLD_NODELETE flag support 2014-10-01 11:09:37 -07:00
eventfd_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
fcntl_test.cpp Add posix_fadvise(3). 2014-09-11 08:45:46 -07:00
fenv_test.cpp Upgrade libm. 2013-02-01 14:51:19 -08:00
fortify_test.cpp debuggerd: if PR_GET_DUMPABLE=0, don't ask for dumping 2014-07-23 15:48:49 -07:00
ftw_test.cpp CLOEXEC support in fdopen, freopen, and mkostemp/mkostemps. 2014-09-23 18:21:52 -07:00
getauxval_test.cpp Move the meat of <features.h> into <sys/cdefs.h>. 2014-08-19 11:18:20 -07:00
getcwd_test.cpp Fix __pthread_clone on ARM to set errno on failure. 2013-02-11 16:39:10 -08:00
inttypes_test.cpp Pull in upstream fixes to reject invalid bases. 2014-09-23 14:53:10 -07:00
libc_logging_test.cpp Add GNU-compatible strerror_r. 2014-08-28 16:37:09 -07:00
libgen_test.cpp Don't expose non-standard basename_r and dirname_r in LP64. 2014-09-08 16:44:48 -07:00
locale_test.cpp call uselocale() before freelocale() to make sure that g_local_key has a valid locale. 2014-08-27 10:26:49 -07:00
malloc_test.cpp Implement malloc_info(3). 2014-08-22 10:23:12 -07:00
math_cos_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_cosf_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_exp_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_expf_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_log_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_logf_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_pow_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_powf_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_sin_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_sincos_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_sincosf_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_sinf_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_tan_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_tanf_test.cpp Start math tests with a clean fenv. 2014-09-02 16:00:10 -07:00
math_test.cpp Fix lgamma_r/lgammaf_r/lgammal_r for -0. 2014-09-18 11:23:58 -07:00
mntent_test.cpp Add getmntent_r to our collection of <mntent.h> compatibility stubs. 2014-05-13 10:44:07 -07:00
netdb_test.cpp Update getnameinfo.c, remove dead code, and fix error reporting. 2013-02-13 13:11:11 -08:00
pthread_test.cpp Clean up the pthread key tests. 2014-09-30 15:40:14 -07:00
regex_test.cpp Consistently use #if defined(__BIONIC__) in tests. 2014-05-13 11:19:57 -07:00
sched_test.cpp Consistently use #if defined(__BIONIC__) in tests. 2014-05-13 11:19:57 -07:00
ScopedSignalHandler.h Fix up failing glibc tests. 2013-10-29 14:55:11 -07:00
search_test.cpp Implement twalk(3), add unit tests. 2014-07-24 14:55:29 -07:00
semaphore_test.cpp Add semaphore tests, fix sem_destroy. 2014-09-19 17:37:06 -07:00
signal_test.cpp Fix mips signed/unsigned signal_test.cpp build breakage. 2014-09-04 15:43:10 -07:00
sstream_test.cpp Improve the <sstream> test. 2014-04-10 20:44:27 -07:00
stack_protector_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
stack_unwinding_test_impl.c Stack unwinding unit tests. 2014-09-17 19:52:14 -07:00
stack_unwinding_test.cpp Stack unwinding unit tests. 2014-09-17 19:52:14 -07:00
stdatomic_test.cpp Switch benchmarks and tests to libc++. 2014-09-30 10:28:30 -07:00
stdint_test.cpp Fixed int fast types for LP64 2014-02-21 16:27:21 +00:00
stdio_ext_test.cpp Add <stdio_ext.h> for elfutils. 2014-08-20 10:23:52 -07:00
stdio_test.cpp CLOEXEC support in fdopen, freopen, and mkostemp/mkostemps. 2014-09-23 18:21:52 -07:00
stdlib_test.cpp Update our FreeBSD realpath(3) to upstream head. 2014-09-30 16:40:41 -07:00
string_posix_strerror_r_test.cpp Add GNU-compatible strerror_r. 2014-08-28 16:37:09 -07:00
string_test.cpp Reset enviroment for math_tests 2014-09-04 18:38:21 -07:00
strings_test.cpp Everyone has CLZ. 2013-02-13 14:40:48 -08:00
stubs_test.cpp Align struct passwd definition with other variations of libc 2014-05-09 22:29:23 +01:00
sys_epoll_test.cpp bionic: make epoll_event structure packed 2014-05-05 19:48:55 -07:00
sys_mman_test.cpp Add/Remove mmap tests. 2014-06-12 13:16:36 -07:00
sys_resource_test.cpp Consistently use #if defined(__BIONIC__) in tests. 2014-05-13 11:19:57 -07:00
sys_select_test.cpp Include sys/types.h and sys/wait.h for waitpid 2014-04-01 17:42:31 -07:00
sys_sendfile_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
sys_socket_test.cpp The host prebuilt glibc is 2.11, so remove workarounds for 2.9. 2014-08-28 19:28:35 -07:00
sys_stat_test.cpp Fix sys_stat.mkfifo when not run as root. 2014-09-24 16:50:30 -07:00
sys_statvfs_test.cpp Implement some of the missing LFS64 support. 2014-02-18 15:39:24 -08:00
sys_syscall_test.cpp Add a unit test for syscall(2). 2013-11-13 13:14:31 -08:00
sys_time_test.cpp Use VDSO for clock_gettime(2) and gettimeofday(2). 2014-07-16 14:27:43 -07:00
sys_types_test.cpp Fix dev_t (for LP64). 2014-01-03 14:49:37 -08:00
sys_vfs_test.cpp Add missing file from previous change. 2014-02-18 15:48:56 -08:00
system_properties_test.cpp Make sure that the same tests are on all platforms. 2014-02-06 20:12:21 -08:00
TemporaryFile.h CLOEXEC support in fdopen, freopen, and mkostemp/mkostemps. 2014-09-23 18:21:52 -07:00
time_test.cpp Reimplement clock(3) using clock_gettime(3) 2014-10-03 18:54:28 -07:00
uchar_test.cpp Move the meat of <features.h> into <sys/cdefs.h>. 2014-08-19 11:18:20 -07:00
uniqueptr_test.cpp Load libraries in breadth-first order 2014-09-08 13:02:50 -07:00
unistd_test.cpp Unit test for abort(3). 2014-09-22 14:41:30 -07:00
wchar_test.cpp Pull in upstream fixes to reject invalid bases. 2014-09-23 14:53:10 -07:00