public void NewTask(PTTimePair start, PTTimePair end) { var task = new SimpleTask(start, end); ParallelTasker.AddTask(start, end, task.OnInitialize, task.Execute, task.OnFinalize, m_period); PTLogger.Warning($"Added {task}"); m_tasks.Add(task); }
public void ClearTasks() { ParallelTasker.ClearTasks(); m_tasks.Clear(); PTLogger.Warning("Cleared all tasks"); }