minor cleanup

This commit is contained in:
Ell 2021-03-16 19:10:25 +01:00
parent c68121614f
commit 448a55081b

View file

@ -5,7 +5,7 @@ using System.Diagnostics;
namespace Coroutine {
/// <summary>
/// A reference to a currently running coroutine.
/// This is returned by <see cref="CoroutineHandler.Start(IEnumerator{Wait},string)"/>.
/// This is returned by <see cref="CoroutineHandler.Start(IEnumerator{Wait},string,int)"/>.
/// </summary>
public class ActiveCoroutine : IComparable<ActiveCoroutine> {
@ -99,9 +99,8 @@ namespace Coroutine {
var result = this.enumerator.MoveNext();
this.stopwatch.Stop();
this.TotalMoveNextTime += this.stopwatch.Elapsed;
if (this.stopwatch.Elapsed > this.MaxMoveNextTime) {
if (this.stopwatch.Elapsed > this.MaxMoveNextTime)
this.MaxMoveNextTime = this.stopwatch.Elapsed;
}
this.MoveNextCount++;
if (!result) {