Table of Content
HAL Forum
function LongInt GetCurTick (
)
Description:
Returns the value of HansaWorld internal counter, which ticks with a frequency of 1000/s (once per millisecond). Useful when measuring function performance.
global
function LongInt GetMilliTime() 
begin
  time t;
  LongInt tick,res;
  
  t = CurrentTime;
  tick = GetCurTick;
  res = GetHour(t)*3600;
  res = res + GetMinute(t)*60;
  res = res + GetSecond(t);
  res = res * 1000;
  res = res + Mod(tick,1000);

  GetMilliTime = res;
  return;
end;
Related topics:
««