testing record time function