.NET Client Stopwatch Application Sample
This sample illustrates the Stopwatch class and some uses for it.
For information about using the samples, see the following topics:
To build the sample using the command prompt
Open the Command Prompt window and navigate to one of the language-specific subdirectories under the StopWatch directory. For information about required settings and the SDK Command Prompt, see How to: Set Sample Settings.
Type msbuild StopWatchCS.sln or msbuild StopWatchVB.sln, depending on your choice of programming language, from one of the language-specific subdirectories.
To build the sample using Visual Studio
Open Windows Explorer and navigate to one of the language-specific subdirectories under the StopWatch directory.
Double-click the StopWatchCS.sln file or StopWatchVB.sln file, depending on your choice of programming language, to open the file in Visual Studio.
On the Build menu, click Build Solution.
To run the sample
Navigate to the directory that contains the new executable file, using the command prompt or Windows Explorer.
Type StopWatchCS.exe or StopWatchVB.exe at the command line, or double-click the file in Windows Explorer.