adds rudimentary function timing