Time tracking as CTA

I like to use Matomo using the time variable. How to manage and store time tracking time for each user as I like to show a POP-UP using a tracking code.

Example: after 2 seconds it should be POP-UP. Can I pull out time variable?

I do not understand it. You want to show popup after visitor spent 2 min on a website? You can do it with simple custom javascript on your page, matomo not needed hereā€¦