Class TimeValue
Represents a value associated with a specific point in time.
public class TimeValue : ITimeGetter
- Inheritance
-
TimeValue
- Implements
- Inherited Members
- Extension Methods
Constructors
TimeValue(TimeSpan, double)
Initializes a new instance of the TimeValue class with the specified time and value.
public TimeValue(TimeSpan time_s, double value)
Parameters
Fields
value
The value associated with the time.
public double value
Field Value
Properties
Time
Gets or sets the time value in seconds.
public TimeSpan Time { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToString(string)
Returns a string representation of this instance using the specified format.
public string ToString(string format)
Parameters
format
stringThe format to use for the string representation.
Returns
- string
A string representation of this instance.
Operators
operator +(TimeValue, TimeValue)
Adds two TimeValue instances.
public static TimeValue operator +(TimeValue a, TimeValue b)
Parameters
Returns
- TimeValue
A new TimeValue instance with the sum of times and values.
operator *(TimeValue, double)
Multiplies a TimeValue instance by a scalar.
public static TimeValue operator *(TimeValue a, double scale)
Parameters
Returns
- TimeValue
A new TimeValue instance with scaled time and value.