public static string ToElapsedTimeString(
double seconds,
int secondPrecision,
string[]? timeNames = null,
double minimumSubSecondResolution = 0.001
)
Public Shared Function ToElapsedTimeString (
seconds As Double,
secondPrecision As Integer,
Optional timeNames As String() = Nothing,
Optional minimumSubSecondResolution As Double = 0.001
) As String
public:
static String^ ToElapsedTimeString(
double seconds,
int secondPrecision,
array<String^>^ timeNames = nullptr,
double minimumSubSecondResolution = 0.001
)
Gemstone.Units.Time.ToElapsedTimeString = function(seconds, secondPrecision, timeNames, minimumSubSecondResolution);
Set secondPrecision to -1 to suppress seconds display, this will force minimum resolution of time display to minutes.
timeNames array needs one string entry for each of the following names:
" year", " years", " day", " days", " hour", " hours", " minute", " minutes", " second", " seconds", "less than ".
ArgumentOutOfRangeException | minimumSubSecondResolution is not less than or equal to Milli or minimumSubSecondResolution is not defined in Factors array. |