TIP: Click on subject to list as thread! ANSI
echo: tornado.support
to: Alexey Fayans
from: Alexey Subbotin
date: 2005-09-07 12:18:44
subject: pause

Приветствую Вас, Alexey!

 AS>> Вот вам нормальная пауза для ДОС версии Торнадо!
 AF> Она не нормальная. Точность этой процедуры - 1/100 секунды. Hужно
 AF> чтобы было хотя бы 1/1000.

  Почему? Можно и без delay (1) - точность будет выше, но и загрузка будет
больше... хотя, как delay работает я не знаю...

Procedure Pause (Duration: LongInt);
{alexrain}
var
  hour, min, sec, ssec : Word;
  temp_time, temp_time_sawe : Word;

Begin
  GetTime (hour, min, sec, ssec);
  temp_time_sawe := ((hour * 60 + min) * 60 + sec) * 600 + ssec;
  temp_time := temp_time_sawe;
  while (Duration > temp_time - temp_time_sawe) do
  begin
    GetTime (hour, min, sec, ssec);
    temp_time := ((hour * 60 + min) * 60 + sec) * 600 + ssec;
  end;
End;

  И вообще, объясни, пожалуйста, что ты имел ввиду? Что-то я не очень понял ;))

           Всего доброго! Алексей

--- (Freq/BBS) --) Welcome to BBS! --)
* Origin: /(Kitten in Rainshire) (440-7701) (23:00-09:00)/ (2:5030/1543)
SEEN-BY: 633/267 270 5030/786
@PATH: 5030/1543 1374 1451 1900 5020/4441 545 715 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.