获取当前时间毫秒
问题描述:
如何获取当前时间(以毫秒为单位)?我知道要使用 Now
,但是我需要获取以毫秒为单位的时间.
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;
答
DateUtils.MilliSecondsBetween(Now, 0);