You can use sizeof(timestamp) to save the need for +1 and move the computation from run-time to compile-time.