DurationToString
DurationToString converts the duration to a string suffix that indicates the scale of the timer.
def DurationToString(
duration: time.Duration
) - > string
Converts the duration to a string suffix that indicates the scale of the timer.
Parameters
| Name | Type | Description |
|---|---|---|
| duration | time.Duration | The duration value to convert into a string suffix. |
Returns
| Type | Description |
|---|---|
string | A string suffix representing the scale of the duration (e.g., "h", "m", "s", "ms", "us", "ns"). |