Lines Matching refs:ts
64 struct timespec ts; in setEnabled() local
65 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in setEnabled()
69 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in setEnabled()
70 (ts.tv_nsec - mPreviousTs.tv_nsec); in setEnabled()
73 mPreviousTs = ts; in setEnabled()
106 struct timespec ts; in sample() local
108 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in sample()
114 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in sample()
115 (ts.tv_nsec - mPreviousTs.tv_nsec); in sample()
117 mPreviousTs = ts; in sample()
137 struct timespec ts; in elapsed() local
139 rc = clock_gettime(CLOCK_MONOTONIC, &ts); in elapsed()
145 elapsed = (ts.tv_sec - mMonotonicTs.tv_sec) * 1000000000LL + in elapsed()
146 (ts.tv_nsec - mMonotonicTs.tv_nsec); in elapsed()