Update Drone.cs

This commit is contained in:
2025-07-03 01:34:37 +03:00
parent 5357dd69fc
commit 35ab5b2f4e

View File

@ -58,11 +58,11 @@ namespace DroneSimulator
private uint TickCount = 0; private uint TickCount = 0;
private uint Tick() private uint Ticks()
{ {
uint tick = (uint)(Stopwatch.GetTimestamp() / Stopwatch.Frequency / 1000); uint tick = (uint)(Stopwatch.GetTimestamp() / Stopwatch.Frequency / 1000);
TickCount += tick; TickCount += tick;
return tick; return TickCount;
} }
public static byte[] getBytes(object data) public static byte[] getBytes(object data)