Added timing code for rasbery pi