VirtualTimeSpanArray.WithUnits(String) Method

Top 

Description

Changes the reporting units of the TimeSpanArray. The values of each member TimeSpan will be unaffected.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

VirtualTimeSpanArray.WithUnits(

String units)

 

 

Arguments

units


Description:

The reporting units to use.

Valid Values:

Value

Label

"day"

days

"hr"

hours

"min"

minutes

"s"

seconds

"ms"

milliseconds

"us"

microseconds

"ns"

nanoseconds

 

 

 

 

Return Value

Type:

Array of timespan

Units:

day

 

 

When reported, returns the values of the member TimeSpan objects expressed in the specified units.

 

Syntax

myTimeSpanArray1 = {TimeSpan.FromDays(1), TimeSpan.FromDays(2)}.WithUnits(myString1);

 

 

See also

VirtualTimeSpanArray Object