Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Samples
Application Samples
 .NET Client Stopwatch Application S...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Samples
.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.

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.

Reference

Stopwatch
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker