Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Time stored in terms of Milliseconds (raw value) as an offset to the "Start Time". Converts easily to other time units. For the Application "Start Time" is the time when Application first Initialized.

Namespace: Visual3D
Assembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
[SerializableAttribute]
public struct Time : IEquatable<Time>, 
	IComparable<Time>, IComparable
<SerializableAttribute> _
Public Structure Time _
	Implements IEquatable(Of Time), IComparable(Of Time),  _
	IComparable

Members

               
 All Members  Constructors   Fields   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Time(Int64)
Creates Time from specified milliseconds.
Addition(Time, TimeInterval)
CompareTo(Object)
CompareTo(Time)
Days
Time converted to Days with double-precision.
Division(Time, Time)
Equality(Time, Time)
Equals(Object) (Overrides ValueType..::..Equals(Object).)
Equals(Time)
FromDays(Double)
Create Time from Days.
FromHours(Double)
Create Time from Hours.
FromMilliseconds(Int32)
Create Time from raw Milliseconds.
FromMilliseconds(Int64)
Create Time from raw Milliseconds.
FromMinutes(Double)
Create Time from Minutes.
FromSeconds(Double)
Create Time from Seconds.
GetHashCode()()()() (Overrides ValueType..::..GetHashCode()()()().)
GreaterThanOrEqual(Time, Time)
Hours
Time converted to Hours with double-precision.
ImplicitWideningImplicitImplicitImplicit(Int32 to Time)
ImplicitWideningImplicitImplicitImplicit(Int64 to Time)
ImplicitWideningImplicitImplicitImplicit(TimeSpan to Time)
ImplicitWideningImplicitImplicitImplicit(Time to Int64)
ImplicitWideningImplicitImplicitImplicit(Time to TimeSpan)
Inequality(Time, Time)
Infinity
Max Time Value should be treated as "Infinite" time (equivalent to 200+ million years!)
IsInfinite
Indicates Max Time Value should be treated as "Infinite" time.
IsNegative
IsZero
Indicates if Time Interval is Zero (infinite Hertz rate).
LessThanOrEqual(Time, Time)
LowByte
Returns the least significant byte from the Millseconds time value.
Milliseconds
Raw Time in Milliseconds (native format for Visual3D Time).
MillisecondsAfterSecond
Time converted to Seconds with double-precision.
Minutes
Time converted to Minutes with double-precision.
NegativeInfinity
Seconds
Time converted to Seconds. Only provides 6-digits of accuracy, which is usually sufficient for times under 1000 sec, still yielding less than 1 msec precision.
SecondsAfterMinute
Time converted to Seconds with double-precision.
SecondsLong
Time converted to Seconds with double-precision.
Subtraction(Time, Time)
Subtraction(Time, TimeInterval)
ToComponents(Int32%, Int32%, Int32%, Double%, Boolean%)
ToComponents(Int32%, Int32%, Int32%, Int32%, Int32%, Boolean%)
ToPositive()()()()
ToString()()()() (Overrides ValueType..::..ToString()()()().)
ToTimeSpan()()()()
Zero
Zero time.

See Also