delphi

Get Current Time Milliseconds


How to get current time in milliseconds? I know to use Now, but I need to get the time in milliseconds.

var
  today : TDateTime;
begin
  today := Now;

Solution

  • DateUtils.MilliSecondsBetween(Now, 0);