Guga360: In the C# example, you might want to consider using the .NET Stopwatch class instead of DateTime.