text: I have the Elapsed Timer library for Arduino 022 and my program works great.
  template< bool _HiRes = true > class TimeThis{ protected: typedef TimeThis< _HiRes > MYTYPE; inline static const unsigned long GetTime( void ) { return ( _HiRes ? micros : millis )(); } public: TimeThis( unsigned long &u_TimeRef ) : u_Time( u_TimeRef = MYTYPE::GetTime() ) { return; } ~TimeThis( void ) { this->u_Time = MYTYPE::GetTime() - this->u_Time; } private: unsigned long &u_Time;};void loop(){ unsigned long u_Time; { TimeThis< true > t_Time( u_Time ); //Lengthy operation } Serial.print( "Run Time: " ); Serial.println( u_Time );}void setup(){Serial.begin(9600);}
  Where did you get this library, which does not appear to have been updated for 1.0?
  Please enter a valid email to subscribe
  We need to confirm your email address.
  To complete the subscription, please click the link in the
  Thank you for subscribing!
  Arduino
  via Egeo 16
  Torino, 10131
  Italy