Class SerializedStopwatch
An obscure usage stopwatch meant to track times across domain-reload and serialization.
Inheritance
System.Object
SerializedStopwatch
Implements
UnityEngine.ISerializationCallbackReceiver
Namespace: GDX.Editor
Syntax
[Serializable]
public class SerializedStopwatch : ISerializationCallbackReceiver
Properties
| Improve this Doc View SourceElapsedTicks
Returns the total number of ticks elapsed since GetStartTick() was called.
Declaration
public double ElapsedTicks { get; }
Property Value
Type | Description |
---|---|
System.Double |
SerializationSpan
Declaration
public double SerializationSpan { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceGetStartTick()
Get the starting point for the stopwatch.
Declaration
public double GetStartTick()
Returns
Type | Description |
---|---|
System.Double | The System.DateTime.Now set by SetStartTick(). |
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
SetStartTick()
Declaration
public void SetStartTick()
Implements
UnityEngine.ISerializationCallbackReceiver