Alternatively, you can always do something like immutable before = MonoTime.currTime(); // do stuf... immutable after = MonoTime.currTime(); Duration timeSpent = after - before;
MonoTime has about 5-10 % fluctuations on my laptop. Is this as good as it gets?
