This is a script, which tracks charging and discharging time of a Windows powered laptop.
It creates a log file, which contains information about time the laptop spend charging and discharging the battery. The collected information can give you a pretty good idea about the battery life of your laptop.
Here's a sample:
charge=77