/system/core/include/utils/ |
D | Timers.h | 36 typedef int64_t nsecs_t; // nano-seconds typedef 38 static CONSTEXPR inline nsecs_t seconds_to_nanoseconds(nsecs_t secs) in seconds_to_nanoseconds() 43 static CONSTEXPR inline nsecs_t milliseconds_to_nanoseconds(nsecs_t secs) in milliseconds_to_nanoseconds() 48 static CONSTEXPR inline nsecs_t microseconds_to_nanoseconds(nsecs_t secs) in microseconds_to_nanoseconds() 53 static CONSTEXPR inline nsecs_t nanoseconds_to_seconds(nsecs_t secs) in nanoseconds_to_seconds() 58 static CONSTEXPR inline nsecs_t nanoseconds_to_milliseconds(nsecs_t secs) in nanoseconds_to_milliseconds() 63 static CONSTEXPR inline nsecs_t nanoseconds_to_microseconds(nsecs_t secs) in nanoseconds_to_microseconds() 68 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns() 69 static CONSTEXPR inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} in ms2ns() 70 static CONSTEXPR inline nsecs_t us2ns(nsecs_t v) {return microseconds_to_nanoseconds(v);} in us2ns() [all …]
|
D | StopWatch.h | 38 nsecs_t lap(); 39 nsecs_t elapsedTime() const; 49 nsecs_t soFar; 50 nsecs_t thisLap; 53 nsecs_t mStartTime;
|
D | Looper.h | 358 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, 369 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, 439 MessageEnvelope(nsecs_t uptime, const sp<MessageHandler> handler, in MessageEnvelope() 443 nsecs_t uptime; 471 nsecs_t mNextMessageUptime; // set to LLONG_MAX when none
|
D | Mutex.h | 73 status_t timedLock(nsecs_t timeoutMilliseconds); 136 inline status_t Mutex::timedLock(nsecs_t timeoutNs) { in timedLock()
|
D | Condition.h | 62 status_t waitRelative(Mutex& mutex, nsecs_t reltime); 108 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { in waitRelative()
|
/system/core/libutils/ |
D | Timers.cpp | 27 nsecs_t systemTime(int clock) in systemTime() 39 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime() 42 nsecs_t systemTime(int /*clock*/) in systemTime() 50 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime() 54 int toMillisecondTimeoutDelay(nsecs_t referenceTime, nsecs_t timeoutTime) in toMillisecondTimeoutDelay()
|
D | StopWatch.cpp | 46 nsecs_t elapsed = elapsedTime(); in ~StopWatch() 50 const nsecs_t soFar = mLaps[i].soFar; in ~StopWatch() 51 const nsecs_t thisLap = mLaps[i].thisLap; in ~StopWatch() 61 nsecs_t StopWatch::lap() in lap() 63 nsecs_t elapsed = elapsedTime(); in lap() 75 nsecs_t StopWatch::elapsedTime() const in elapsedTime()
|
D | Looper.cpp | 230 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() 319 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() 389 nsecs_t endTime = systemTime(SYSTEM_TIME_MONOTONIC) in pollAll() 398 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollAll() 587 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessage() 591 void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, in sendMessageDelayed() 593 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessageDelayed() 597 void Looper::sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, in sendMessageAtTime()
|
D | PropertyMap.cpp | 132 nsecs_t startTime = systemTime(SYSTEM_TIME_MONOTONIC); in load() 137 nsecs_t elapsedTime = systemTime(SYSTEM_TIME_MONOTONIC) - startTime; in load()
|
D | Threads.cpp | 459 status_t wait(WinCondition* condState, HANDLE hMutex, nsecs_t* abstime) 470 nsecs_t reltime = *abstime - systemTime(); 562 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) 566 nsecs_t absTime = systemTime()+reltime;
|
D | BlobCache.cpp | 46 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in BlobCache()
|
/system/vold/ |
D | Benchmark.cpp | 51 static nsecs_t benchmark(const std::string& path) { in benchmark() 87 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in benchmark() 91 nsecs_t create = systemTime(SYSTEM_TIME_BOOTTIME); in benchmark() 100 nsecs_t drop = systemTime(SYSTEM_TIME_BOOTTIME); in benchmark() 104 nsecs_t run = systemTime(SYSTEM_TIME_BOOTTIME); in benchmark() 108 nsecs_t destroy = systemTime(SYSTEM_TIME_BOOTTIME); in benchmark() 120 nsecs_t create_d = create - start; in benchmark() 121 nsecs_t drop_d = drop - create; in benchmark() 122 nsecs_t run_d = run - drop; in benchmark() 123 nsecs_t destroy_d = destroy - run; in benchmark() [all …]
|
D | Benchmark.h | 29 nsecs_t BenchmarkPrivate(const std::string& path);
|
D | TrimTask.cpp | 130 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in run() 135 nsecs_t delta = systemTime(SYSTEM_TIME_BOOTTIME) - start; in run()
|
D | VolumeManager.h | 123 nsecs_t benchmarkPrivate(const std::string& id);
|
D | CommandListener.cpp | 263 nsecs_t res = vm->benchmarkPrivate(id); in runCommand()
|
D | VolumeManager.cpp | 386 nsecs_t VolumeManager::benchmarkPrivate(const std::string& id) { in benchmarkPrivate()
|
/system/extras/tests/memtest/ |
D | fptest.cpp | 34 typedef long long nsecs_t; typedef 35 static nsecs_t gTime; 38 static nsecs_t system_time() in system_time() 43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time() 53 nsecs_t t = system_time() - gTime; in endTime()
|
D | memtest.h | 20 typedef long long nsecs_t; typedef 23 nsecs_t system_time();
|
D | memtest.cpp | 31 nsecs_t system_time() { in system_time() 35 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time()
|
D | bandwidth.h | 45 nsecs_t t = system_time(); in run()
|
D | bandwidth.cpp | 240 nsecs_t t = system_time(); in processThreadArgs()
|
/system/core/libutils/tests/ |
D | Looper_test.cpp | 561 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() 598 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() 617 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F()
|