偶设置了个全局的time控件一开始运行,就显示0,1,2,3,4。。但到4 ,8,12  的时候就停顿久一点其他时段正常。怎么回事?

解决方案 »

  1.   

    label2.caption:=FormatDateTime('s',now-fNow);----就是时间显示呀0,1,2,3时间间隔相等但到4以后就停滞的久了点到8,12也这样。好象是每个4个就停久一点
      

  2.   

    在onTimer加个Application.HandleMessage.
      

  3.   

    测试了一下, 没发现LZ所说的情况:
    var
      fNow : TDateTime;procedure TForm1.FormCreate(Sender: TObject);
    begin
      fNow := Now();
      Timer1.Interval := 50;
      Timer1.Enabled := True;
    end;procedure TForm1.Timer1Timer(Sender: TObject);
    begin
      Label1.caption:=FormatDateTime('s.zzz',now-fNow);
    end;