home

about

license

support

K/Base

Indy
HomeContactsSite Map


Indy 10.6.1, 64-bit Tick Counters

To support 64-bit tick counters that do not wrap back to 0 every 49.7 days, the following support functions have been added to the IdGlobal unit:

Ticks64()
GetTickDiff64()
GetElapsedTicks()
GetElapsedTicks64()

The following 32-bit functions have been marked as deprecated:

Ticks()
GetTickDiff()

A new TIdTicks data type has been added, which maps to UInt64 on compilers that support UInt64, and maps to Int64 otherwise.

GetTickDiff64() returns the difference between two TIdTicks values.

GetElapsedTicks() and GetElapsedTicks64() return the difference between a specified starting TIdTicks value and the current value returned by Ticks64().  This way, you do not have to call GetTickDiff64(StartingTicks, Ticks64) manually.  There are two functions provided because the majority of tick counters do not take 49.7 days to elapse, so GetElapsedTicks() returns a LongWord, whereas GetElapsedTicks64() returns a TIdTicks instead in case you need to track elapsed times as 64-bit values.

This change affects several components, so Indy's version number has been rolled to 10.6.1.


Corporate Sponsors

Atozed







home

about

license

support

K/Base

site map

links

Copyright © 1993 - 2008 Chad Z. Hower (Kudzu) and the Indy Pit Crew.          Website design by RuInternet.ru