Add duration to BaseHit.

This commit is contained in:
Dean Herbert 2016-09-02 18:31:32 +09:00
parent 7cee44ab1d
commit 9d6b19a2ee
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ public abstract class BaseHit
public double StartTime;
public double? EndTime;
public double Duration => (EndTime ?? StartTime) - StartTime;
public HitSampleInfo Sample;
}
}