Constructs a string representation of an elapsed amount of time. The least significant unit will be rounded to the nearest whole number.
elapsedToString(2001, ["s", "ms"]); // "2 s 1 ms"elapsedToString(15, ["wks", "d"], ( elapsedUnit: TimeUnit.Days }); // "2 wks 1 d"elapsedToString(1, [TimeUnit.Microseconds]); // "1000 μs" Copy
elapsedToString(2001, ["s", "ms"]); // "2 s 1 ms"elapsedToString(15, ["wks", "d"], ( elapsedUnit: TimeUnit.Days }); // "2 wks 1 d"elapsedToString(1, [TimeUnit.Microseconds]); // "1000 μs"
whether to include the most significant units in the string if they are zero.
Constructs a string representation of an elapsed amount of time. The least significant unit will be rounded to the nearest whole number.