Pega RPA doesn't capture task mining. We have Pega Workforce Intelligence which captures user activity and provides number of clicks, mouse pause etc. You will need to a separate license for Workforce Intelligence. If you need a demo for Workforce Intelligence, please reach out to your account team and they can schedule one.
In the meantime, you can visit our product page on Pega Community - https://community.pega.com/knowledgebase/products/workforce-intelligence