title: Programmatically Determine a Duration of a Locked Workstation?
body: <p>How can one determine, in code, how long the machine is locked?</p>
  
  <p>Other ideas outside of C# are also welcome.</p>
  
  <hr>
  
  <p>I like the windows service idea (and have accepted it) for simplicity and cleanliness, but unfortunately I don't think it will work for me in this particular case. I wanted to run this on my workstation at work rather than home (or in addition to home, I suppose), but it's locked down pretty hard courtesy of the DoD. That's part of the reason I'm rolling my own, actually.</p>
  
  <p>I'll write it up anyway and see if it works. Thanks everyone!</p>