다음을 통해 공유


.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

  1. 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.

  2. 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

  1. Open Windows Explorer and navigate to one of the language-specific subdirectories under the StopWatch directory.

  2. Double-click the StopWatchCS.sln file or StopWatchVB.sln file, depending on your choice of programming language, to open the file in Visual Studio.

  3. On the Build menu, click Build Solution.

To run the sample

  1. Navigate to the directory that contains the new executable file, using the command prompt or Windows Explorer.

  2. Type StopWatchCS.exe or StopWatchVB.exe at the command line, or double-click the file in Windows Explorer.

Requirements

The .NET Compact Framework must be installed on your desktop computer, which can be installed with the netcfsetupv2.msi file located in the \SDK\v2.0\CompactFramework\ folder under Microsft.NET or Visual Studio 8 under Program files.

See Also

Reference

Stopwatch