Reading pulse and then getting rpm from encoder motor

try change the interrupt routine to 'take notes' of timing.
define the two timingvariables "volatile long"
Use the time_difference to calculate rpm.
Remove delay.. do useful stuff instead
Move attachinterrupt to setup()

void countf()
{
   last_time=now_time;
   now_time=micros();
}