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