adding some primitives for measuring performance on the raspberry pi