//>>> _using
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpDX;
using SharpDX.Direct3D11;
using SharpDX.Windows;
//<<< _using
using Framefield.Core.Profiling;

namespace Framefield.Core.IDa17fdcdf_9216_46c2_b3fc_13c3e7acb95d
{
    public class Class_TimeSinceLastFrame : OperatorPart.Function, Framefield.Core.OperatorPartTraits.ITimeAccessor
    {
        //>>> _inputids
        private enum InputId
        {
        }
        //<<< _inputids
        public override OperatorPartContext Eval(OperatorPartContext context, List<OperatorPart> inputs, int outputIdx)
        {
            //>>> _params
            
            //<<< _params
            
            
            if(context.Time != _lastTime) {
                _lastDuration = (float)(context.Time - _lastTime);
                _lastTime = context.Time;
            }
            context.Value = _lastDuration;
            return context;
        }
        private float _lastDuration;
        private double _lastTime; 
    }
}


