example and test with timing