Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor changes.
  • Loading branch information
tallesl committed Jun 23, 2017
1 parent e086bc1 commit b7e27a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Library/Unit/DelayTimeUnit.cs
Expand Up @@ -19,8 +19,7 @@ internal DelayTimeUnit(Schedule schedule, int interval)

/// <summary>
/// Sets the interval to milliseconds.
/// <para />
/// Note: Precision timing is not guaranteed. Low intervals may result in high error.
/// The timing may not be accurated when used with very low intervals.
/// </summary>
public void Milliseconds()
{
Expand Down
3 changes: 1 addition & 2 deletions Library/Unit/TimeUnit.cs
Expand Up @@ -17,8 +17,7 @@ internal TimeUnit(Schedule schedule, int duration)

/// <summary>
/// Sets the interval to milliseconds.
/// <para />
/// Note: Precision timing is not guaranteed. Low intervals may result in high error.
/// The timing may not be accurated when used with very low intervals.
/// </summary>
public MillisecondUnit Milliseconds()
{
Expand Down
8 changes: 4 additions & 4 deletions TestApplication/MyRegistry.cs
Expand Up @@ -101,15 +101,15 @@ private void Parameter()

private void Disposable()
{
Schedule<DisposableJob>().WithName("[disposable").ToRunOnceIn(10).Seconds();
Schedule<DisposableJob>().WithName("[disposable]").ToRunOnceIn(10).Seconds();
}

private void FiveHundredMilliseconds()
{
L.Register("[five hundred milliseconds]");
L.Register("[half a second]");

Schedule(() => L.Log("[five hundred milliseconds]", "Five hundred milliseconds have passed."))
.WithName("[five hundred milliseconds]").ToRunOnceAt(DateTime.Now.AddMilliseconds(500)).AndEvery(500).Milliseconds();
Schedule(() => L.Log("[half a second]", "Half a second has passed."))
.WithName("[half a second]").ToRunOnceIn(500).Milliseconds();
}

private void FiveMinutes()
Expand Down

0 comments on commit b7e27a6

Please sign in to comment.