private SetDuration ( double condition, int offset, int milliseconds ) : void | ||
condition | double | |
offset | int | |
milliseconds | int | |
return | void |
private void SetDuration(double condition, int offset, int milliseconds)
{
var id = (int)Math.Log(condition, 2) + (64 * offset);
lock (_durations)
_durations[id] = DateTime.Now.AddMilliseconds(milliseconds);
}