System.Double Absolute { get; set; }

robot_2Generated
code_blocksInput

Description

The Absolute property of the RealTimeSince struct represents the exact time at which the timer was last reset. This time is based on the global time provided by RealTime.GlobalNow. It is useful for determining the specific point in time when the timer was reset, as opposed to the elapsed time since the reset.

Usage

Use the Absolute property when you need to know the exact time of the last reset event. This can be particularly useful for logging or debugging purposes where precise timing is required.

Example

// Example of using RealTimeSince and accessing the Absolute property
RealTimeSince timer = 0; // Reset the timer

// Some operations...

// Check the absolute time of the last reset
double resetTime = timer.Absolute;

// Output the reset time for debugging or logging purposes
// Note: Avoid using Console.WriteLine in Sandbox environment
// Instead, use appropriate logging or debugging tools
Log.Info($"Timer was last reset at: {resetTime}");