TicksToElapsedTimeString(Int32, Double) Method
Converts the
Ticks value into a textual representation of years, days, hours,
minutes and seconds with the specified number of fractional digits.
Namespace: GemstoneAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.150 -- Release Build+64e3b411e1abfbd2d4d8a81e850c3909a0ce8731
public string ToElapsedTimeString(
int secondPrecision,
double minimumSubSecondResolution = 0.001
)
Public Function ToElapsedTimeString (
secondPrecision As Integer,
Optional minimumSubSecondResolution As Double = 0.001
) As String
public:
String^ ToElapsedTimeString(
int secondPrecision,
double minimumSubSecondResolution = 0.001
)
function ToElapsedTimeString(secondPrecision, minimumSubSecondResolution);
- secondPrecision Int32
- Number of fractional digits to display for seconds.
- minimumSubSecondResolution Double (Optional)
-
Minimum sub-second resolution to display. Defaults to Milli.
String
The string representation of the value of this instance, consisting of the number of
years, days, hours, minutes and seconds represented by this value.
Set secondPrecision to -1 to suppress seconds display, this will
force minimum resolution of time display to minutes.
| ArgumentOutOfRangeException | minimumSubSecondResolution is not less than or equal to Milli or
minimumSubSecondResolution is not defined in Factors array.
|