Checking that functions are constant time with Valgrind