Space Engineers
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
VRage.Library.Utils.MyTimeSpan Struct Reference

Hi-resolution time span. Beware: the resolution can be different on different systems! More...

Public Member Functions

 MyTimeSpan (long stopwatchTicks)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

static MyTimeSpan FromTicks (long ticks)
 
static MyTimeSpan FromSeconds (double seconds)
 
static MyTimeSpan FromMinutes (double minutes)
 
static MyTimeSpan FromMilliseconds (double milliseconds)
 
static MyTimeSpan operator+ (MyTimeSpan a, MyTimeSpan b)
 
static MyTimeSpan operator- (MyTimeSpan a, MyTimeSpan b)
 
static bool operator!= (MyTimeSpan a, MyTimeSpan b)
 
static bool operator== (MyTimeSpan a, MyTimeSpan b)
 
static bool operator> (MyTimeSpan a, MyTimeSpan b)
 
static bool operator< (MyTimeSpan a, MyTimeSpan b)
 
static bool operator>= (MyTimeSpan a, MyTimeSpan b)
 
static bool operator<= (MyTimeSpan a, MyTimeSpan b)
 

Public Attributes

readonly long Ticks
 

Static Public Attributes

static readonly MyTimeSpan Zero = new MyTimeSpan()
 
static readonly MyTimeSpan MaxValue = new MyTimeSpan(long.MaxValue)
 

Properties

double Nanoseconds [get]
 
double Microseconds [get]
 
double Milliseconds [get]
 
double Seconds [get]
 
TimeSpan TimeSpan [get]
 This may not be accurate for large values - double accuracy More...
 

Detailed Description

Hi-resolution time span. Beware: the resolution can be different on different systems!

Definition at line 8 of file MyTimeSpan.cs.

Constructor & Destructor Documentation

VRage.Library.Utils.MyTimeSpan.MyTimeSpan ( long  stopwatchTicks)
inline

Definition at line 43 of file MyTimeSpan.cs.

Member Function Documentation

override bool VRage.Library.Utils.MyTimeSpan.Equals ( object  obj)
inline

Definition at line 48 of file MyTimeSpan.cs.

static MyTimeSpan VRage.Library.Utils.MyTimeSpan.FromMilliseconds ( double  milliseconds)
inlinestatic

Definition at line 73 of file MyTimeSpan.cs.

static MyTimeSpan VRage.Library.Utils.MyTimeSpan.FromMinutes ( double  minutes)
inlinestatic

Definition at line 68 of file MyTimeSpan.cs.

static MyTimeSpan VRage.Library.Utils.MyTimeSpan.FromSeconds ( double  seconds)
inlinestatic

Definition at line 63 of file MyTimeSpan.cs.

static MyTimeSpan VRage.Library.Utils.MyTimeSpan.FromTicks ( long  ticks)
inlinestatic

Definition at line 58 of file MyTimeSpan.cs.

override int VRage.Library.Utils.MyTimeSpan.GetHashCode ( )
inline

Definition at line 53 of file MyTimeSpan.cs.

static bool VRage.Library.Utils.MyTimeSpan.operator!= ( MyTimeSpan  a,
MyTimeSpan  b 
)
inlinestatic

Definition at line 88 of file MyTimeSpan.cs.

static MyTimeSpan VRage.Library.Utils.MyTimeSpan.operator+ ( MyTimeSpan  a,
MyTimeSpan  b 
)
inlinestatic

Definition at line 78 of file MyTimeSpan.cs.

static MyTimeSpan VRage.Library.Utils.MyTimeSpan.operator- ( MyTimeSpan  a,
MyTimeSpan  b 
)
inlinestatic

Definition at line 83 of file MyTimeSpan.cs.

static bool VRage.Library.Utils.MyTimeSpan.operator< ( MyTimeSpan  a,
MyTimeSpan  b 
)
inlinestatic

Definition at line 103 of file MyTimeSpan.cs.

static bool VRage.Library.Utils.MyTimeSpan.operator<= ( MyTimeSpan  a,
MyTimeSpan  b 
)
inlinestatic

Definition at line 113 of file MyTimeSpan.cs.

static bool VRage.Library.Utils.MyTimeSpan.operator== ( MyTimeSpan  a,
MyTimeSpan  b 
)
inlinestatic

Definition at line 93 of file MyTimeSpan.cs.

static bool VRage.Library.Utils.MyTimeSpan.operator> ( MyTimeSpan  a,
MyTimeSpan  b 
)
inlinestatic

Definition at line 98 of file MyTimeSpan.cs.

static bool VRage.Library.Utils.MyTimeSpan.operator>= ( MyTimeSpan  a,
MyTimeSpan  b 
)
inlinestatic

Definition at line 108 of file MyTimeSpan.cs.

override string VRage.Library.Utils.MyTimeSpan.ToString ( )
inline

Definition at line 118 of file MyTimeSpan.cs.

Member Data Documentation

readonly MyTimeSpan VRage.Library.Utils.MyTimeSpan.MaxValue = new MyTimeSpan(long.MaxValue)
static

Definition at line 11 of file MyTimeSpan.cs.

readonly long VRage.Library.Utils.MyTimeSpan.Ticks

Definition at line 13 of file MyTimeSpan.cs.

readonly MyTimeSpan VRage.Library.Utils.MyTimeSpan.Zero = new MyTimeSpan()
static

Definition at line 10 of file MyTimeSpan.cs.

Property Documentation

double VRage.Library.Utils.MyTimeSpan.Microseconds
get

Definition at line 21 of file MyTimeSpan.cs.

double VRage.Library.Utils.MyTimeSpan.Milliseconds
get

Definition at line 26 of file MyTimeSpan.cs.

double VRage.Library.Utils.MyTimeSpan.Nanoseconds
get

Definition at line 16 of file MyTimeSpan.cs.

double VRage.Library.Utils.MyTimeSpan.Seconds
get

Definition at line 31 of file MyTimeSpan.cs.

TimeSpan VRage.Library.Utils.MyTimeSpan.TimeSpan
get

This may not be accurate for large values - double accuracy

Definition at line 39 of file MyTimeSpan.cs.


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