Home  |  Delphi .net Home  |  System.TimeSpan  |  FromTicks Method
  
FromTicks  
Method  
Creates a TimeSpan value from a given number of ticks
TimeSpan Structure
System NameSpace
CF1.  Function FromTicks ( Ticks : Int64 ) : TimeSpan; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Creates a new TimeSpan value with a span equal to the specified number of ticks. (A tick is 0.0000001 secnods).
Notes
Static methods are not methods of an object - they are simply class functions or procedures available at any time.
Microsoft MSDN Links
System
System.TimeSpan
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

var
  span : TimeSpan;

begin
  span := System.TimeSpan.FromTicks(123456789);

  Console.WriteLine('123456789 ticks = {0}', span);

  Console.ReadLine;
end.
   123456789 ticks = 00:00:12.3456789
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author