Updated timing functions, added test cases to cross compiled main