Searched refs:nsecs_t (Results 1 – 17 of 17) sorted by relevance
/system/core/include/utils/ |
D | Timers.h | 34 typedef int64_t nsecs_t; // nano-seconds typedef 36 static inline nsecs_t seconds_to_nanoseconds(nsecs_t secs) in seconds_to_nanoseconds() 41 static inline nsecs_t milliseconds_to_nanoseconds(nsecs_t secs) in milliseconds_to_nanoseconds() 46 static inline nsecs_t microseconds_to_nanoseconds(nsecs_t secs) in microseconds_to_nanoseconds() 51 static inline nsecs_t nanoseconds_to_seconds(nsecs_t secs) in nanoseconds_to_seconds() 56 static inline nsecs_t nanoseconds_to_milliseconds(nsecs_t secs) in nanoseconds_to_milliseconds() 61 static inline nsecs_t nanoseconds_to_microseconds(nsecs_t secs) in nanoseconds_to_microseconds() 66 static inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns() 67 static inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} in ms2ns() 68 static 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, 434 MessageEnvelope(nsecs_t uptime, const sp<MessageHandler> handler, in MessageEnvelope() 438 nsecs_t uptime; 465 nsecs_t mNextMessageUptime; // set to LLONG_MAX when none
|
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 | 36 nsecs_t systemTime(int clock) in systemTime() 48 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime() 51 nsecs_t systemTime(int /*clock*/) in systemTime() 59 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime() 63 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 | 202 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() 284 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() 350 nsecs_t endTime = systemTime(SYSTEM_TIME_MONOTONIC) in pollAll() 359 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollAll() 490 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessage() 494 void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, in sendMessageDelayed() 496 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessageDelayed() 500 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 | LinearAllocator.cpp | 61 static nsecs_t s_nextLog = 0; 65 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in _logUsageLocked()
|
D | Threads.cpp | 481 status_t wait(WinCondition* condState, HANDLE hMutex, nsecs_t* abstime) 492 nsecs_t reltime = *abstime - systemTime(); 584 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) 588 nsecs_t absTime = systemTime()+reltime;
|
D | BlobCache.cpp | 44 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in BlobCache()
|
/system/extras/tests/memtest/ |
D | memtest.h | 20 typedef long long nsecs_t; typedef 23 nsecs_t system_time();
|
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.cpp | 31 nsecs_t system_time() in system_time() 36 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time()
|
D | bandwidth.h | 41 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()
|