1
This commit is contained in:
21
Unity/Scripts/Utility/Tests/DateTimeTester.cs
Normal file
21
Unity/Scripts/Utility/Tests/DateTimeTester.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using NUnit.Framework;
|
||||
using UnityEngine;
|
||||
using UnityEngine.TestTools;
|
||||
namespace BITKit
|
||||
{
|
||||
public class DateTimeTester
|
||||
{
|
||||
[Test]
|
||||
public void GetTicks()
|
||||
{
|
||||
Debug.Log(DateTime.Now.Ticks);
|
||||
var time = TimeUtils.GetNow();
|
||||
Debug.Log($"long:\t{time}");
|
||||
Debug.Log($"int:\t{(int)time}");
|
||||
Debug.Log($"float:\t{(float)time}");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user