Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Outline

Stopwatch

Provides time managment methods built for TinyCLR OS and .NET nanoFramework.

Simple Example

class Program
{
    static void Main(string[] args)
    {
        Stopwatch stopWatch = new Stopwatch();
        stopWatch.Start();
        Thread.Sleep(10000);
        stopWatch.Stop();
        
        // Get the elapsed time as a TimeSpan value.
        TimeSpan ts = stopWatch.Elapsed;

        // Format and display the TimeSpan value.
        string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
            ts.Hours, ts.Minutes, ts.Seconds,
            ts.Milliseconds / 10);
        Debug.WriteLine("RunTime " + elapsedTime);
    }
}

TinyCLR Packages

Install release package from NuGet or using the Package Manager Console :

PM> Install-Package Bytewizer.TinyCLR.Stopwatch

.NET nanoFramework Packages

Install release package from NuGet or using the Package Manager Console :

PM> Install-Package Bytewizer.NanoCLR.Core
Morty Proxy This is a proxified and sanitized view of the page, visit original site.