Is there a way to access to heart beat in live ?

I d' like to measure the duration between each heartbeat during a specific period (e.g. 2 minutes)


Regards,

Arnaud