A few days ago, I wrote and posted a BatteryTimer.sh shell script for UNIX. It was a notebook battery timing software for my friend to determine how long his OLPC will last on a single battery charge. Soon after, I decided I want to test my Windows laptop as well. So I started writing a batch script version for Windows. The batch language is quite limited, which caused me to give up the batch script version. I ended up writing the battery timer in Java.
This way, the BatteryTimer software will work with any operating system that has a Java Runtime Environment (JRE), including Windows. Now I can test any notebook computer with the BatteryTimer. And you can, too, because I have attached it below.
To use it, charge the battery all the way up, unplug the notebook from the wall AC adapter, execute the BatteryTimer Java class (by typing "java BatteryTimer") that is attached to this thread, and wait till the laptop dies. After the notebook dies, boot it up again. BatteryTimer will create a log file called "BatteryTimer.txt" in the directory where you executed BatteryTimer. This log file contains the time stamp at the start and end of execution. Use this command to see the battery life: "type BatteryTimer.txt"
For a controlled comparison between two or more computing modes (such as color vs. black-and-white on the OLPC), you should not use the computer while the BatteryTimer is running. On the other hand, if you want to measure how long the battery lasts during your day-to-day routine, you can start this software while you are using your notebook computer.
GetLine takes advantage of the CI Class Package 5.5 or newer. You will have to download the package and install it if you don't have it already. BatteryTimer is distributed as Freeware. Please see the "Freeware License Agreement" elsewhere on this site.
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.
Messages, files, and images copyright by respective owners.
17 Users Online
Copyright © 1996 - 2017. All Rights Reserved.