How Visitors in Real-Time and Visits by Server Time(Actions) widget calculate statistics

Hi,

I have to know that how Visitors in Real-Time and Visits by Server Time(graph for actions) widget calculate statistics.

Can anyone please help me to sort out.

Kind Regards
Saqib Ali

Please see: New to Piwik - Analytics Platform - Matomo