5

I am using multi device in Delphi and I am building an android app. I need to use GetTickCount that was declared in Windows .

Does it exist somewhere in firemonkey or is there an alternative ?

Johan
  • 74,508
  • 24
  • 191
  • 319
Vlark.Lopin
  • 762
  • 10
  • 21

2 Answers2

13

use TThread.GetTickCount it's cross platform

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
EKriss
  • 131
  • 2
11

GetTickCount is a Windows function and so does not exist on other platforms. For your cross platform needs you should use TStopWatch from System.Diagnostics.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490