mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Add number of milliseconds since last update to "show threads"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user