Searched refs:clock (Results 1 - 7 of 7) sorted by relevance
/system/extras/tests/bionic/libstdc++/ |
H A D | test_ctime.cpp | 47 #ifdef clock 75 using std::clock; 89 volatile std::clock_t clock; local 97 volatile std::clock_t clock1 = std::clock(); 98 volatile std::clock_t clock2 = std::clock();
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_clock.c | 17 // Minimal test program for clock 25 // this thread soaks the CPU so that clock() function will advance 39 // do not call clock() here so we can test initialization 41 // soak the CPU for 10 seconds, then read clock 44 ticks10 = clock(); 46 // soak the CPU for 5 more seconds, then read clock 48 ticks15 = clock(); 52 printf("At 10 secs clock=%lu, at 15 secs clock=%lu\n", ticks10, ticks15);
|
H A D | test_pthread_getcpuclockid.c | 43 clockid_t clock; local 48 e = pthread_getcpuclockid( self, &clock ); 59 clock_gettime( clock, &ts );
|
/system/core/include/utils/ |
H A D | StopWatch.h | 33 int clock = SYSTEM_TIME_MONOTONIC,
|
H A D | Timers.h | 78 SYSTEM_TIME_REALTIME = 0, // system-wide realtime clock 80 SYSTEM_TIME_PROCESS = 2, // high-resolution per-process clock 81 SYSTEM_TIME_THREAD = 3, // high-resolution per-thread clock 85 // return the system-time according to the specified clock 87 nsecs_t systemTime(int clock = SYSTEM_TIME_MONOTONIC); 89 nsecs_t systemTime(int clock);
|
/system/core/libutils/ |
H A D | StopWatch.cpp | 36 StopWatch::StopWatch(const char *name, int clock, uint32_t flags) argument 37 : mName(name), mClock(clock), mFlags(flags)
|
H A D | Timers.cpp | 35 nsecs_t systemTime(int clock) argument 47 clock_gettime(clocks[clock], &t);
|
Completed in 118 milliseconds