|
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: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.241-beta+912389e96d98840d2a999d490420db618dcbe4c6
Syntaxpublic 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
)
member ToElapsedTimeString :
secondPrecision : int *
?minimumSubSecondResolution : float
(* Defaults:
let _minimumSubSecondResolution = defaultArg minimumSubSecondResolution 0.001
*)
-> string
function ToElapsedTimeString(secondPrecision, minimumSubSecondResolution);
View SourceParameters
- secondPrecision Int32
- Number of fractional digits to display for seconds.
- minimumSubSecondResolution Double (Optional)
-
Minimum sub-second resolution to display. Defaults to Milli.
Return Value
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.
Exceptions
Remarks
Set secondPrecision to -1 to suppress seconds display, this will
force minimum resolution of time display to minutes.
See Also