public void SendPulseTimingEvent(RaygunPulseEventType eventType, string name, long milliseconds)
{
if (_activeBatch == null) {
_activeBatch = new PulseEventBatch (this);
}
if (_activeBatch != null && !_activeBatch.IsLocked) {
if (_sessionId == null) {
SendPulseSessionEvent (RaygunPulseSessionEventType.SessionStart);
}
PendingEvent pendingEvent = new PendingEvent (eventType, name, milliseconds, _sessionId);
_activeBatch.Add (pendingEvent);
} else {
ThreadPool.QueueUserWorkItem (c => SendPulseTimingEventCore (eventType, name, milliseconds));
}
}