using Godot;
using System;

namespace Newlon.Debug;

//
// Debug tool to check time since clock loaded
//

public partial class Clock : Label
{
    private ulong _time = 0;
    public override void _Process(double delta)
    {
        _time += (ulong)(delta*1000);
        ulong seconds = _time / 1000 % 60;
        ulong minutes = seconds / 60 % 60;
        Text = minutes.ToString()+":"+seconds.ToString();
    }
}
