A TenneySoftware Class Library
NativeMethods..::.Timer Constructor
NamespacesTenneySoftware.HighResolutionTimerNativeMethods..::.TimerNativeMethods..::.Timer()()()
Constructor for Timer.
Declaration Syntax
C#Visual BasicVisual Basic UsageVisual C++J#JScript
public Timer()
Public Sub New
Dim instance As New NativeMethods..::.Timer()
public:
Timer()
public Timer()
public function NativeMethods..::.Timer()
TenneySoftware.HighResolutionTimer.Timer = function();
Examples
CopyC#
using System;
using TenneySoftware;
using TenneySoftware.HighResolutionTimer;

namespace Library_Test {
    class Program {
        public static NativeMethods.Timer timer = new NativeMethods.Timer();
        static void Main(string[] args) {
            timer.Start();
            System.Threading.Thread.Sleep(1000);
            TimerFormat Elapsed = timer.ToTimerFormat();
            Console.WriteLine("ToTimer() Time: " + Elapsed.ToString());
            Console.WriteLine("ToString() Time: " + timer.ToString());
            /*
            Output: 
            ToTimer() Time: 1.00043539053148s
            ToString() Time: 1.00985746791841s
             */
            Console.Read();
        }
    }
}

Assembly: TenneySoftware (Module: TenneySoftware) Version: 0.0.3067.16853 (0.1.0.0)