Home
last modified time | relevance | path

Searched refs:nsecs_t (Results 1 – 23 of 23) sorted by relevance

/system/core/include/utils/
DTimers.h36 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 …]
DStopWatch.h38 nsecs_t lap();
39 nsecs_t elapsedTime() const;
49 nsecs_t soFar;
50 nsecs_t thisLap;
53 nsecs_t mStartTime;
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 uptime, const sp<MessageHandler> handler, in MessageEnvelope()
443 nsecs_t uptime;
471 nsecs_t mNextMessageUptime; // set to LLONG_MAX when none
DMutex.h73 status_t timedLock(nsecs_t timeoutMilliseconds);
136 inline status_t Mutex::timedLock(nsecs_t timeoutNs) { in timedLock()
DCondition.h62 status_t waitRelative(Mutex& mutex, nsecs_t reltime);
108 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { in waitRelative()
/system/core/libutils/
DTimers.cpp27 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()
DStopWatch.cpp46 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()
DLooper.cpp230 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()
DPropertyMap.cpp132 nsecs_t startTime = systemTime(SYSTEM_TIME_MONOTONIC); in load()
137 nsecs_t elapsedTime = systemTime(SYSTEM_TIME_MONOTONIC) - startTime; in load()
DThreads.cpp459 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;
DBlobCache.cpp46 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in BlobCache()
/system/vold/
DBenchmark.cpp51 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 …]
DBenchmark.h29 nsecs_t BenchmarkPrivate(const std::string& path);
DTrimTask.cpp130 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in run()
135 nsecs_t delta = systemTime(SYSTEM_TIME_BOOTTIME) - start; in run()
DVolumeManager.h123 nsecs_t benchmarkPrivate(const std::string& id);
DCommandListener.cpp263 nsecs_t res = vm->benchmarkPrivate(id); in runCommand()
DVolumeManager.cpp386 nsecs_t VolumeManager::benchmarkPrivate(const std::string& id) { in benchmarkPrivate()
/system/extras/tests/memtest/
Dfptest.cpp34 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()
Dmemtest.h20 typedef long long nsecs_t; typedef
23 nsecs_t system_time();
Dmemtest.cpp31 nsecs_t system_time() { in system_time()
35 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time()
Dbandwidth.h45 nsecs_t t = system_time(); in run()
Dbandwidth.cpp240 nsecs_t t = system_time(); in processThreadArgs()
/system/core/libutils/tests/
DLooper_test.cpp561 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()