2014년 3월 19일 수요일

[Lazarus] Linux Console Application에서 Timer 사용하기


uses
  ...., fptimer;



FTimer : TFPTimer;



...
...
..


FTimer := TFPTimer.Create;

FTimer.Interval := 1000;
FTimer.OnTimer := @OnTimer;
FTimer.Enabled := true;

..
..


Good!!!! Lazarus!!