How to measure time when being logged in
<p>I want to implement a project where I check system timings whenever I am logged in.
If I enter the office and log in my system the I should get the time and also when I go for a break I just lock my PC and go so at that time time should stop and again when I login it should start.</p>

<p>Basically it should show me the total time I was logged in my computer/PC.</p>
