Using java API determine calculate the time when pc is locked or kept idle
<p>What i want is the time when the user locked pc. As there is sleep time which we can set but i want the time when user's pc is locked and unlocked and also the time when user 1st time logged in and last logout time.  </p>
