Struct TimedScope
Allows time measurements
Implements
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public struct TimedScope : IDisposable
Examples
double duration = 0; using (TimedScope.FromPtr(&duration)) { // something to get the time } Debug.Log($"Duration: {duration}")
Methods
Name | Description |
---|---|
FromPtr(double*) | Obtains a TimedScope. Safety: |
FromRef(ref double) | Obtains a TimedScope |