Speed is defined as