作一个判断吧, tempTime:=time(某个时间) if (now-tempTime)>1/(60*24) then Edit1.text:=formatDatetime('MM:SS',(now-tempTime)) else Edit1.text:=formatDatetime('SS',(now-tempTime));应该是可以实现的吧
用IF判断一下 if 当前秒数=secondof(now) then begin ....... ...... end; if 当前分数=minuteof(now) then begin ...... ...... end;
tempTime:=time(某个时间)
if (now-tempTime)>1/(60*24) then
Edit1.text:=formatDatetime('MM:SS',(now-tempTime))
else
Edit1.text:=formatDatetime('SS',(now-tempTime));应该是可以实现的吧
if 当前秒数=secondof(now) then begin
.......
......
end;
if 当前分数=minuteof(now) then begin
......
......
end;