Created
January 20, 2012 19:33
-
-
Save Buildstarted/1649144 to your computer and use it in GitHub Desktop.
Perform.This() sample usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//write this to the once every 5 seconds for 5 iterations | |
Perform.This(() => { | |
Console.WriteLine(DateTime.UtcNow); | |
}) | |
.Every(TimeSpan.FromSeconds(5)) | |
.For(5) | |
.Start(); | |
//write to the console in 10 seconds | |
Perform.This(() => { | |
Console.WriteLine(DateTime.UtcNow); | |
}) | |
.In(TimeSpan.FromSeconds(10)) | |
.Start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment