Hi there,
Unfortunately, this is an area that is significantly lacking in the Stajistics project. There was a wiki page which had recently been accidentally hidden.. you can find it here:
http://code.google.com/p/stajistics/wiki/GettingStarted
It doesn't say much, though.
To get started, I would recommend examining the org.stajistics.Stats class. It is the facade to the underlying statistics management system that you'd be calling directly in your code.
Try something like this:
SpanTracker tracker = Stats.track("keyName");
// Your time consuming code here
tracker.commit();
// Discard the tracker instance.. get a new one from Stats every time you need it.
Now, the results are logged upon the commit, but you can also use jconsole to look around at the MBeans stajistics exposes, which will contain your results.
Hope that helps.. Sorry :/
Troy
P.S. There is a fair amount of javadoc in place to help you out, although it's no substitute for a proper user guide.