public void Dispose() { _native.EndTask(_domain, 0); }
public void SubmitTask(string name, ulong timeStamp, ulong dur, ulong id = 0, Task parent = null) { Native.BeginTask(_domainPointer, id, parent?.Id ?? 0, name, timeStamp); Native.EndTask(_domainPointer, timeStamp + dur); }