Lines Matching refs:ts
63 struct timespec ts; in setEnabled() local
64 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in setEnabled()
68 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in setEnabled()
69 (ts.tv_nsec - mPreviousTs.tv_nsec); in setEnabled()
72 mPreviousTs = ts; in setEnabled()
105 struct timespec ts; in sample() local
107 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in sample()
113 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in sample()
114 (ts.tv_nsec - mPreviousTs.tv_nsec); in sample()
116 mPreviousTs = ts; in sample()
136 struct timespec ts; in elapsed() local
138 rc = clock_gettime(CLOCK_MONOTONIC, &ts); in elapsed()
144 elapsed = (ts.tv_sec - mMonotonicTs.tv_sec) * 1000000000LL + in elapsed()
145 (ts.tv_nsec - mMonotonicTs.tv_nsec); in elapsed()