See the version list below for details.
Install-Package ZsGWorks.UsageWatcher -Version 1.2.1
dotnet add package ZsGWorks.UsageWatcher --version 1.2.1
<PackageReference Include="ZsGWorks.UsageWatcher" Version="1.2.1" />
paket add ZsGWorks.UsageWatcher --version 1.2.1
#r "nuget: ZsGWorks.UsageWatcher, 1.2.1"
// Install ZsGWorks.UsageWatcher as a Cake Addin #addin nuget:?package=ZsGWorks.UsageWatcher&version=1.2.1 // Install ZsGWorks.UsageWatcher as a Cake Tool #tool nuget:?package=ZsGWorks.UsageWatcher&version=1.2.1
A simple way to watch mouse and keyboard usage for tracking purposes
A central library for my own applications to watch for keyboard / mouse usage in order to track active computer use.
How does it work
The idea is very simple: You pass a given 'resolution', like two minutes, and any mouse or keyboard movement within that timeframe will be considered an active time. If the computer is locked usage is not counted.
What it doesn't do
It's not logging anything. Neither software usage, nor which keys were pressed. You can check.
There is a probe project included, this line is taken from there:
IWatcher watcher = new Watcher("testApp", Resolution.HalfMinute, SavePreference.KeepDataForToday, DataPrecision.HighPrecision);
Then you can just ask, also from the probe project:
TimeSpan usage = watcher.UsageForGivenTimeframe(startTime, startTime + TimeSpan.FromDays(1));
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
Initial NuGet release