Returns an accurate seconds float value for today, would get inaccurate with more days.
View code on GitHub Namespace: DeltaEngine.CoreAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
public float GetSecondsSinceStartToday()
public float GetSecondsSinceStartToday()
Public Function GetSecondsSinceStartToday As Single
Public Function GetSecondsSinceStartToday As Single
public:
float GetSecondsSinceStartToday()
public:
float GetSecondsSinceStartToday()
member GetSecondsSinceStartToday : unit -> float32
member GetSecondsSinceStartToday : unit -> float32
Return Value
Type:
SingleTests:
DeltaEngine.Tests.Core.GlobalTimeTests1 unit tests call DeltaEngine.Core.GlobalTime.GetSecondsSinceStartToday
[Test]
public void GetSecondsSinceStartToday()
{
Assert.LessOrEqual(time.GetSecondsSinceStartToday(), 1.0f / 20.0f);
time.Update();
Assert.AreNotEqual(0.0f, time.GetSecondsSinceStartToday());
}
[Test]
public void GetSecondsSinceStartToday()
{
Assert.LessOrEqual(time.GetSecondsSinceStartToday(), 1.0f / 20.0f);
time.Update();
Assert.AreNotEqual(0.0f, time.GetSecondsSinceStartToday());
}