A timing task developed in C#