Skip to content

Releases: ZsoltGajdacs/UsageWatcher

New method to list dates with usage

07 Oct 20:29
Compare
Choose a tag to compare

Added a new method to list the dates for which there is usage data available.

Complete overhaul

27 Mar 16:24
Compare
Choose a tag to compare

When I released the nuget package at 1.2.1, I was quite surprised that there were people actually downloading it. Beacuse of this, I started to look at this project from a bit different perspective and decided that I try to give it a more useful / reliable form.

So:

  • I tried to make the public interface method names easier to understand, this is obviously a breaking change
  • I standardized the namespaces
  • Renamed some enum members / updated their descriptions
  • Added more options to SavePreferences (7,14,28 days of keeping data, forever is gone for now, replaced by 365 days)
  • Separated archive and current day data (Less disk write when you keep a lot of historical data)
  • High precision types are now completely separate and there's an interface before them (making the way for the low precision type, which I will implement)
  • Saving is now done separately from usage add, it is now halfway between two usages (just to make sure I'm not tring to add data and serialize at the same time)
  • Added a unit test project, which I intend to fully build up to test the internal logic
  • Resolution is now stored per usage (so it's possible to change it on the fly)
  • Added some validation after serialization

Deserialization fix

09 Mar 21:11
Compare
Choose a tag to compare

Fix for a bug in deserialization, which only caused problems when getting a list of usages.

EnumUtil fix

02 Mar 21:05
Compare
Choose a tag to compare

A small fix for the util for the dynamic usage of enums, it can now look for an enum based on DisplayName, Description or the enum's member name.

Enums

15 Feb 20:35
Compare
Choose a tag to compare

Improved the descriptions of enums a bit and added Display names for them.
Also added an extension and an Util for the enums, so their properties can now be dynamically read.

The aim is to make it easier to use.

(I use it in my project's settings where the enums are used directly in a ComboBox)

Blocks and gaps

18 Jan 19:36
Compare
Choose a tag to compare

Added two new features:

  • Usage list in blocks
  • Gaps in usage in blocks

So far you could only get the overall time the computer was used in any given timeframe.
Now you can ask a somewhat detailed list of this:

If the time gap between the usages is lower than the current resolution, then it is counted as continous usage and listed in one block.

For example:
If you have a resolution of 30 seconds, then a usage would last from 20:30:30 to 20:31:00. The next usage for example is 20:31:25 to 20:31:55. Since the gap is smaller than the resolution of 30 seconds, this is counted as continous usage.

A block like this will last until a gap of more than 30 seconds is found.

You can also get this list inverted:
Will give you a list of blocks when the computer was not used.

Save fix

21 Nov 17:45
Compare
Choose a tag to compare

If saves were only kept for today, and the app was running for multiple days, then it would keep only the data for the startup day. This is now fixed, and it now works as it was originally intended: Only today's data is kept if SavePreference.KeepDataForToday is set.

Mouse detection fix

29 Oct 18:50
Compare
Choose a tag to compare

Before it always detected a mouse pos change, now it's fixed.

Quick fix

12 Oct 03:06
Compare
Choose a tag to compare

Left out the IDisposable from the main interface, fixed.

First release

11 Oct 18:21
d2a1ebb
Compare
Choose a tag to compare
1.0

Update README.md