Add number of milliseconds since last update to "show threads"

This commit is contained in:
Justin Clark-Casey (justincc)
2011-11-15 21:49:13 +00:00
parent 94b1c16398
commit 7db38a351c
2 changed files with 18 additions and 4 deletions

View File

@@ -48,6 +48,15 @@ namespace OpenSim.Framework
public class ThreadWatchdogInfo
{
public Thread Thread { get; private set; }
/// <summary>
/// Approximate tick when this thread was started.
/// </summary>
public int StartTick { get; private set; }
/// <summary>
/// Last time this heartbeat update was invoked
/// </summary>
public int LastTick { get; set; }
/// <summary>
@@ -64,7 +73,8 @@ namespace OpenSim.Framework
{
Thread = thread;
Timeout = timeout;
LastTick = Environment.TickCount & Int32.MaxValue;
StartTick = Environment.TickCount & Int32.MaxValue;
LastTick = StartTick;
}
}