Are we likely to be changing this again?  If so, perhaps consider a `static const unsigned int maxbuffertime = 100;` ?

Your code, so your choice :)  The rest looks fine.