public RenderInfo(ViewerInfo viewer, FrameStamp frameStamp) { this.Viewer = viewer; this.FrameStamp = frameStamp; }
private FrameStamp GetFrameStamp() { lapWatch.Stop(); globalWatch.Stop(); FrameStamp frameStamp = new FrameStamp(frameNumber++, globalWatch.Elapsed.TotalSeconds, lapWatch.Elapsed.TotalSeconds); lapWatch.Reset(); lapWatch.Start(); globalWatch.Start(); return frameStamp; }