Cynosure.X International LLC

:

Add Comment | Related Links | TrackBack
Related Content

BatteryTimer (Freeware)

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.

Attached File: BatteryTimer.class (2 KB)

Chieh Cheng
Mon, 18 Feb 2008 05:54:43 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 9 + 7?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

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.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

91 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.