Lines Matching refs:mData
55 : mName(strdup(name)), mNum(0), mData(NULL), mDataLen(0), mCapacity(capacity * 2), in StopWatch()
64 mData = (Measurement *) malloc(mCapacity * sizeof(Measurement)); in StopWatch()
73 free(mData); in ~StopWatch()
81 clock_gettime(CLOCK_MONOTONIC, &mData[mDataLen].mTime); in start()
82 mData[mDataLen].mIsStart = true; in start()
85 mStart = mData[mDataLen].mTime; // mDataLen should be 0 in start()
95 clock_gettime(CLOCK_MONOTONIC, &mData[mDataLen].mTime); in stop()
96 mData[mDataLen].mIsStart = false; in stop()
114 if (mDataLen > 0 && mData[mDataLen - 1].mIsStart) in sprint()
136 long second = mData[i * 2].mTime.tv_sec - mStart.tv_sec; in sprint()
137 long nano = mData[i * 2].mTime.tv_nsec - mStart.tv_nsec; in sprint()
156 mData = (Measurement *)realloc(mData, mCapacity * sizeof(Measurement)); in checkCapacity()
172 long second = mData[i + 1].mTime.tv_sec - mData[i].mTime.tv_sec; in processSamples()
173 long nano = mData[i + 1].mTime.tv_nsec - mData[i].mTime.tv_nsec; in processSamples()