Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 56) sorted by relevance

123

/bionic/tests/
Dtime_test.cpp40 TEST(time, time) { in TEST() argument
42 time_t p1, t1 = time(&p1); in TEST()
50 time_t p2, t2 = time(&p2); in TEST()
61 ASSERT_LE(t2, time(nullptr)); in TEST()
62 ASSERT_LE(time(nullptr) - t2, static_cast<time_t>(1)); in TEST()
65 TEST(time, gmtime) { in TEST() argument
77 TEST(time, gmtime_r) { in TEST() argument
90 TEST(time, mktime_TZ_as_UTC_and_offset) { in TEST() argument
112 TEST(time, gmtime_no_stack_overflow_14313703) { in TEST() argument
125 TEST(time, mktime_empty_TZ) { in TEST() argument
[all …]
/bionic/libc/bionic/
Dtime64.c494 Time64_T time; in mktime64() local
507 time = (Time64_T)mktime(&safe_date); in mktime64()
509 time += seconds_between_years(year, (Year)(safe_date.tm_year + 1900)); in mktime64()
511 return time; in mktime64()
527 Time64_T time = *in_time; in gmtime64_r() local
554 v_tm_sec = (int)(time % 60); in gmtime64_r()
555 time /= 60; in gmtime64_r()
556 v_tm_min = (int)(time % 60); in gmtime64_r()
557 time /= 60; in gmtime64_r()
558 v_tm_hour = (int)(time % 24); in gmtime64_r()
[all …]
Dndk_cruft.cpp298 time_t time; member
312 tb->time = tv.tv_sec; in ftime()
316 ++tb->time; in ftime()
Dvdso.cpp69 time_t time(time_t* t) { in time() function
72 auto vdso_time = reinterpret_cast<decltype(&time)>(__libc_globals->vdso[VDSO_TIME].fn); in time()
/bionic/libc/kernel/uapi/sound/
Dasequencer.h132 struct snd_seq_real_time time; member
143 union snd_seq_timestamp time; member
162 union snd_seq_timestamp time; member
173 union snd_seq_timestamp time; member
183 union snd_seq_timestamp time; member
262 union snd_seq_timestamp time; member
335 struct snd_seq_real_time time; member
/bionic/libc/kernel/uapi/linux/
Dtimex.h21 struct timeval time; member
60 struct __kernel_timex_timeval time; member
Dinput.h16 struct timeval time; member
17 #define input_event_sec time.tv_sec
18 #define input_event_usec time.tv_usec
Dum_timetravel.h13 __u64 time; member
Djoystick.h16 __u32 time; member
Dscc.h125 unsigned int time; member
Drtc.h26 struct rtc_time time; member
Dblktrace_api.h83 __u64 time; member
Dmsdos_fs.h134 __le16 time, date, start; member
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_system_tests.cpp226 std::srand(std::time(nullptr)); in Exec()
288 time_t start_time = time(nullptr); in InternalExec()
305 if ((time(nullptr) - start_time) > kReadOutputTimeoutSeconds) { in InternalExec()
313 start_time = time(nullptr); in InternalExec()
320 if ((time(nullptr) - start_time) > kWaitpidTimeoutSeconds) { in InternalExec()
326 start_time = time(nullptr); in InternalExec()
330 if (wait_pid == pid_ || (time(nullptr) - start_time) > kWaitpidTimeoutSeconds) { in InternalExec()
346 time_t start = time(nullptr); in CheckExpectedLogStrings()
362 if ((time(nullptr) - start) > kLogTimeoutSeconds) { in CheckExpectedLogStrings()
/bionic/docs/
Dclang_fortify_anatomy.md12 actually works in Bionic at the time of writing. Other FORTIFY implementations
48 to provide useful run-time checks. For the purpose of this document, all
80 * complexity and irrelevance. It turns into a compile-time warning if the
137 - Producing a compile-time error if the number of bytes to copy trivially
140 available at the destination, a run-time check is inserted to crash the
143 determined at compile-time[^1].
236 ### How does Clang offer compile-time diagnostics?
252 mempcpy(buf, input_buf, 5); // Emits a compile-time error since sizeof(buf) < 5.
253 __builtin_mempcpy(buf, input_buf, 5); // No compile-time error.
254 (&mempcpy)(buf, input_buf, 5); // No compile-time error, since __builtin_mempcpy is selected.
[all …]
Dlibc_assembler.md69 It can take a long time to run these tests since it attempts to test a
82 …***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will i…
89 The smaller the time, the better the performance.
126 especially important if this is the first time a routine is assembler.
134 assembler routines optimize by reading multipe bytes at a time and can
Dnative_allocator.md62 implementation, but it should be a reasonable amount of time. The jemalloc
197 allocations of the same size at the same time.
201 Only the time it takes to do the allocations is recorded, the frees are not
208 related to having multiple allocations alive at the same time.
225 benchmark, only the time it takes to do the allocations is tracked, the
320 this is a worst case scenario for allocations happening at the same time
323 time. The trace data does not include timestamps,
352 The performance number is a measure of the time it takes to perform all of
354 For any call that allocates a pointer, the time for the call and the time
402 happen if all of the allocations are spaced out in time so no thread
[all …]
/bionic/benchmarks/
Dtime_benchmark.cpp184 time(nullptr); in BM_time_time()
190 time_t t = time(nullptr); in BM_time_localtime()
198 time_t t = time(nullptr); in BM_time_localtime_r()
DREADME.md83 ## Process startup time (bionic-spawn-benchmarks)
85 The `spawn/` subdirectory has a few benchmarks measuring the time used to start simple programs
94 Google Benchmark reports both a real-time figure ("Time") and a CPU usage figure. For these
95 benchmarks, the CPU measurement only counts time spent in the thread calling `posix_spawn`, not that
96 spent in the spawned process. The real-time is probably more useful, and it is the figure used to
182 …***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will i…
/bionic/libc/kernel/uapi/asm-x86/asm/
Dmce.h18 __u64 time; member
/bionic/tests/headers/posix/
DREADME.md3 These compile-time tests check that each POSIX header contains _at
Dtime_h.c99 FUNCTION(time, time_t (*f)(time_t*)); in time_h()
/bionic/libc/tzcode/
Dprivate.h596 static time_t sys_time(time_t *x) { return time(x); } in sys_time()
635 # undef time
636 # define time tz_time macro
695 time_t time(time_t *);
/bionic/benchmarks/linker_relocation/
DREADME.md3 This benchmark measures the time spent in the dynamic linker to load a large set
/bionic/libc/malloc_hooks/
DREADME.md61 These hooks can be set at any time, but there is no thread safety, so
63 occurring at the same time.

123