Jumpvalley 0.7.0
An app and library that can be used to test and run 3D platformer levels! Made with Godot.
Loading...
Searching...
No Matches
UTheCat.Jumpvalley.Core.Timing.OffsetStopwatch Class Reference

This class extends the Stopwatch (in the standard C# library) so that an initial value for elapsed time can be specified. This initial value acts as an offset for the Stopwatch's real elapsed time. More...

Inheritance diagram for UTheCat.Jumpvalley.Core.Timing.OffsetStopwatch:

Public Member Functions

 OffsetStopwatch (TimeSpan offset)
 Creates a new instance of OffsetStopwatch

Public Attributes

TimeSpan TimeOffset
 The elapsed time offset applied to the original Elapsed variable in order to return the offsetted elapsed time in OffsetElapsedTime

Properties

TimeSpan OffsetElapsedTime [get, set]
 The elapsed time after applying the time offset defined in TimeOffset

Detailed Description

This class extends the Stopwatch (in the standard C# library) so that an initial value for elapsed time can be specified. This initial value acts as an offset for the Stopwatch's real elapsed time.

Constructor & Destructor Documentation

◆ OffsetStopwatch()

UTheCat.Jumpvalley.Core.Timing.OffsetStopwatch.OffsetStopwatch ( TimeSpan offset)
inline

Creates a new instance of OffsetStopwatch

Parameters
offsetThe time offset to apply

The documentation for this class was generated from the following file: