Methods Summary |
---|
public final long | getEndTimeNano()Gets the end time of the interval for which these statistics
apply. The end interval is the time when the last frame was
presented.
if (getFrameCount() <= 0) {
return UNDEFINED_TIME_NANO;
}
return mFramesPresentedTimeNano[mFramesPresentedTimeNano.length - 1];
|
public final int | getFrameCount()Gets the number of frames for which there is data.
return mFramesPresentedTimeNano != null
? mFramesPresentedTimeNano.length : 0;
|
public final long | getFramePresentedTimeNano(int index)Get the time a frame at a given index was presented.
if (mFramesPresentedTimeNano == null) {
throw new IndexOutOfBoundsException();
}
return mFramesPresentedTimeNano[index];
|
public final long | getRefreshPeriodNano()Gets the refresh period of the display hosting the window(s) for
which these statistics apply.
return mRefreshPeriodNano;
|
public final long | getStartTimeNano()Gets the start time of the interval for which these statistics
apply. The start interval is the time when the first frame was
presented.
if (getFrameCount() <= 0) {
return UNDEFINED_TIME_NANO;
}
return mFramesPresentedTimeNano[0];
|