Calculating delta time

Maybe it isn't, I'm only learning. I'm an animator by profession, not a coder.