update method

void update()

Implementation

void update(){
  var now = DateTime.now();
  final diff = now.difference(_previous);
  _previous = now;
  fps.value = _convertDurationToFramesPerSecond(diff);
}