|
@@ -28,6 +28,11 @@ namespace KairoEngine.Core
|
|
public static string TimeToString(float time)
|
|
public static string TimeToString(float time)
|
|
{
|
|
{
|
|
string t = "";
|
|
string t = "";
|
|
|
|
+ if(time < 1)
|
|
|
|
+ {
|
|
|
|
+ int miliseconds = (int)(time * 1000);
|
|
|
|
+ return $"{miliseconds} ms";
|
|
|
|
+ }
|
|
int minutes = (int)time / 60;
|
|
int minutes = (int)time / 60;
|
|
int hours = (int)minutes / 60;
|
|
int hours = (int)minutes / 60;
|
|
minutes = (int)minutes % 60;
|
|
minutes = (int)minutes % 60;
|