smarthaert / phoenixlib

Automatically exported from code.google.com/p/phoenixlib
0 stars 0 forks source link

TPHXPathState #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please Add TimeUntilNow function!

.Time Returns the time of the current frame... I need the time until now of all 
frame.

I suggest something like this:

function TPHXPathState.GetTimeUntilNow: Single;
var
  AIndex: Integer;
begin
  Result := 0;

  if FPath.Items.Count > 0 then
  begin

    for AIndex := 0 to FIndex - 1 do
      Result := Result + Path.Items.List^[AIndex].Time;
  end;

end;

Original issue reported on code.google.com by wagenhei...@gmail.com on 8 Feb 2011 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by andreas....@gmail.com on 8 Aug 2013 at 2:11