FormatTime
Formats a given TimeSpan object as a string in the format "X ms", "X s", or "X min", depending on the length of the time span.
読み終わるまでの所要時間 1 分最終更新 3時間前
Definition
- Type: Method
- Namespace: Unity.ProjectAuditor.Editor.Utils
- Assembly: UnityEditor
FormatTime(TimeSpan)
Formats a given TimeSpan object as a string in the format "X ms", "X s", or "X min", depending on the length of the time span.
public static string FormatTime(TimeSpan timeSpan)
Parameters
The TimeSpan object to format.
Returns
Type | Description |
|---|---|
| string | A string representation of the input TimeSpan object. |
FormatTime(float)
Formats a given time value as a string in the format "X ms", "X s", or "X min"
public static string FormatTime(float timeMs)
Parameters
The time value to format, in milliseconds.
Returns
Type | Description |
|---|---|
| string | A string representation of the input float value. |