Timing framework improvement

@nkogteva please, review.
I'm a little confused by this logic -- in the above case, you error out if it's too long.  But in this case, you just realloc.

There's also another dichotomy: you use asprintf() for allocation up above, but then seem to be enforcing some kind of (soft?) alloc limit here.

Is there a reason for these differences?