static long GetCounterValue(FrameDataView frameData, string name) { var id = frameData.GetMarkerId(name); if (id == FrameDataView.invalidMarkerId) { return(-1); } return(frameData.GetCounterValueAsLong(id)); }
static long GetCounterValue(FrameDataView frameData, string name) { var id = frameData.GetMarkerId(name); if (id == FrameDataView.invalidMarkerId) { return(-1); } return(frameData.GetCounterValueAsLong(id)); }