Method Milliseconds
Milliseconds(Int32)
Returns a System.TimeSpan representing the specified number of milliseconds.
Declaration
public static TimeSpan Milliseconds(this int milliseconds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | milliseconds | The number of milliseconds in the time span. |
Returns
| Type | Description |
|---|---|
| System.TimeSpan | A System.TimeSpan. |
Milliseconds(Int64)
Returns a System.TimeSpan representing the specified number of milliseconds.
Declaration
public static TimeSpan Milliseconds(this long milliseconds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | milliseconds | The number of milliseconds in the time span. |
Returns
| Type | Description |
|---|---|
| System.TimeSpan | A System.TimeSpan. |
Milliseconds(Double)
Returns a System.TimeSpan representing the specified number of milliseconds.
Declaration
public static TimeSpan Milliseconds(this double milliseconds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | milliseconds | The number of milliseconds in the time span. |
Returns
| Type | Description |
|---|---|
| System.TimeSpan | A System.TimeSpan. |
Milliseconds(Single)
Returns a System.TimeSpan representing the specified number of milliseconds.
Declaration
public static TimeSpan Milliseconds(this float milliseconds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | milliseconds | The number of milliseconds in the time span. |
Returns
| Type | Description |
|---|---|
| System.TimeSpan | A System.TimeSpan. |