mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-12-28 19:39:38 +01:00
minor cleanup
This commit is contained in:
parent
c68121614f
commit
448a55081b
1 changed files with 2 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue