Represents a range of time
explicit TimeSpan( |
| ) |
Creates a TimeSpan given the nanoseconds value. This constructor is private to force use of the static constructor methods to create a timespan.
nanoseconds uint64 | The number of nanoseconds to create the TimeSpan with. |
The number of nanoseconds in the timespan
int64 compare( |
| ) const |
Gets the nanoseconds resolution of the TimeSpan
The TimeSpan in nanoseconds resolution
Gets the microsecond resolution of the TimeSpan
The TimeSpan in microsecond resolution
Gets the millisecond resolution of the TimeSpan
The TimeSpan in milliseconds resolution
Gets the seconds resolution of the TimeSpan
The TimeSpan in seconds resolution
static TimeSpan NanoSeconds( |
| ) |
Creates a TimeSpan object from nanoseconds
nanoseconds uint64 | The number of nanoseconds for the timespan |
A TimeSpan object representative of the passed in value
static TimeSpan MicroSeconds( |
| ) |
Creates a TimeSpan object from microseconds
microseconds uint64 | The number of microseconds for the timespan |
A TimeSpan object representative of the passed in value
static TimeSpan MilliSeconds( |
| ) |
Creates a TimeSpan object from milliseconds
milliseconds uint64 | The number of milliseconds for the timespan |
A TimeSpan object representative of the passed in value
static TimeSpan Seconds( |
| ) |
Creates a TimeSpan object from seconds
seconds uint64 | The number of seconds for the timespan |
A TimeSpan object representative of the passed in value
static TimeSpan Minutes( |
| ) |
Creates a TimeSpan object from minutes
minutes int | The number of minutes for the timespan |
A TimeSpan object representative of the passed in value
static TimeSpan Hours( |
| ) |
Creates a TimeSpan object from hours
hours int | The number of hours for the timespan |
A TimeSpan object representative of the passed in value
static TimeSpan Days( |
| ) |
Creates a TimeSpan object from days
days int | The number of days for the timespan |
A TimeSpan object representative of the passed in value