Searched refs:nsecs_t (Results 1 - 25 of 30) sorted by relevance

12

/system/extras/tests/memtest/
H A Dmemtest.h20 typedef long long nsecs_t; typedef
23 nsecs_t system_time();
H A Dfptest.cpp34 typedef long long nsecs_t; typedef
35 static nsecs_t gTime;
38 static nsecs_t system_time()
43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec;
53 nsecs_t t = system_time() - gTime;
H A Dmemtest.cpp31 nsecs_t system_time() {
35 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec;
H A Dbandwidth.h45 nsecs_t t = system_time();
/system/core/include/utils/
H A DTimers.h36 typedef int64_t nsecs_t; // nano-seconds typedef
38 static CONSTEXPR inline nsecs_t seconds_to_nanoseconds(nsecs_t secs)
43 static CONSTEXPR inline nsecs_t milliseconds_to_nanoseconds(nsecs_t secs)
48 static CONSTEXPR inline nsecs_t microseconds_to_nanoseconds(nsecs_t secs)
53 static CONSTEXPR inline nsecs_t nanoseconds_to_seconds(nsecs_t secs)
58 static CONSTEXPR inline nsecs_t nanoseconds_to_millisecond
[all...]
H A DStopWatch.h38 nsecs_t lap();
39 nsecs_t elapsedTime() const;
49 nsecs_t soFar;
50 nsecs_t thisLap;
53 nsecs_t mStartTime;
H A DLooper.h358 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,
369 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
439 MessageEnvelope(nsecs_t u, const sp<MessageHandler> h,
443 nsecs_t uptime;
471 nsecs_t mNextMessageUptime; // set to LLONG_MAX when none
H A DMutex.h78 status_t timedLock(nsecs_t timeoutNs);
141 inline status_t Mutex::timedLock(nsecs_t timeoutNs) {
H A DCondition.h69 status_t waitRelative(Mutex& mutex, nsecs_t reltime);
118 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) {
/system/core/libutils/include/utils/
H A DTimers.h36 typedef int64_t nsecs_t; // nano-seconds typedef
38 static CONSTEXPR inline nsecs_t seconds_to_nanoseconds(nsecs_t secs)
43 static CONSTEXPR inline nsecs_t milliseconds_to_nanoseconds(nsecs_t secs)
48 static CONSTEXPR inline nsecs_t microseconds_to_nanoseconds(nsecs_t secs)
53 static CONSTEXPR inline nsecs_t nanoseconds_to_seconds(nsecs_t secs)
58 static CONSTEXPR inline nsecs_t nanoseconds_to_millisecond
[all...]
H A DStopWatch.h38 nsecs_t lap();
39 nsecs_t elapsedTime() const;
49 nsecs_t soFar;
50 nsecs_t thisLap;
53 nsecs_t mStartTime;
H A DLooper.h358 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,
369 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
439 MessageEnvelope(nsecs_t u, const sp<MessageHandler> h,
443 nsecs_t uptime;
471 nsecs_t mNextMessageUptime; // set to LLONG_MAX when none
H A DMutex.h78 status_t timedLock(nsecs_t timeoutNs);
141 inline status_t Mutex::timedLock(nsecs_t timeoutNs) {
H A DCondition.h69 status_t waitRelative(Mutex& mutex, nsecs_t reltime);
118 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) {
/system/core/libutils/
H A DTimers.cpp26 nsecs_t systemTime(int clock)
38 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec;
41 nsecs_t systemTime(int /*clock*/)
49 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL;
53 int toMillisecondTimeoutDelay(nsecs_t referenceTime, nsecs_t timeoutTime)
55 nsecs_t timeoutDelayMillis;
H A DStopWatch.cpp42 nsecs_t elapsed = elapsedTime();
46 const nsecs_t soFar = mLaps[i].soFar;
47 const nsecs_t thisLap = mLaps[i].thisLap;
57 nsecs_t StopWatch::lap()
59 nsecs_t elapsed = elapsedTime();
71 nsecs_t StopWatch::elapsedTime() const
H A DLooper.cpp221 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
310 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
380 nsecs_t endTime = systemTime(SYSTEM_TIME_MONOTONIC)
389 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
579 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
583 void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,
585 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
589 void Looper::sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
H A DPropertyMap.cpp128 nsecs_t startTime = systemTime(SYSTEM_TIME_MONOTONIC);
133 nsecs_t elapsedTime = systemTime(SYSTEM_TIME_MONOTONIC) - startTime;
H A DThreads.cpp452 status_t wait(WinCondition* condState, HANDLE hMutex, nsecs_t* abstime)
463 nsecs_t reltime = *abstime - systemTime();
555 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime)
559 nsecs_t absTime = systemTime()+reltime;
/system/vold/
H A DBenchmark.h29 nsecs_t BenchmarkPrivate(const std::string& path);
H A DBenchmark.cpp51 static nsecs_t benchmark(const std::string& path) {
87 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME);
91 nsecs_t create = systemTime(SYSTEM_TIME_BOOTTIME);
100 nsecs_t drop = systemTime(SYSTEM_TIME_BOOTTIME);
104 nsecs_t run = systemTime(SYSTEM_TIME_BOOTTIME);
108 nsecs_t destroy = systemTime(SYSTEM_TIME_BOOTTIME);
120 nsecs_t create_d = create - start;
121 nsecs_t drop_d = drop - create;
122 nsecs_t run_d = run - drop;
123 nsecs_t destroy_
[all...]
H A DTrimTask.cpp129 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME);
134 nsecs_t delta = systemTime(SYSTEM_TIME_BOOTTIME) - start;
H A DVolumeManager.h123 nsecs_t benchmarkPrivate(const std::string& id);
/system/tools/hidl/test/
H A DFooCallback.cpp32 nsecs_t start = systemTime();
34 nsecs_t end = systemTime();
46 nsecs_t start = systemTime();
50 nsecs_t end = systemTime();
62 nsecs_t start = systemTime();
66 nsecs_t end = systemTime();
79 nsecs_t leftToWaitNs = ns;
90 nsecs_t start = systemTime();
/system/core/libutils/tests/
H A DLooper_test.cpp561 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
598 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
617 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);

Completed in 656 milliseconds

12