Show milliseconds with Android Chronometer

Matthew Steeples picture Matthew Steeples · Jun 5, 2010 · Viewed 26.6k times · Source

I'm looking for a way to make the Chronometer in Android (preferably 1.6 and upwards) show 10ths of a second while counting up.

Is it possible to do this? If not, is there a free (and preferably open source) library that does the same? Failing that I'll write my own, but I'd rather use someone else's!

Answer

antoniom picture antoniom · Jan 15, 2012

Android's default chronometer widget does not support millisecond formatting.

I have modified the Chronometer widget source code in order to show milliseconds. Download it from github.