std::cout outputs characters by default when processing uint8_t variable types. It happens that the ascii characters corresponding to the numbers 0-10 are not printable.
Solution:
usestatic_cast<int>
std::cout << static_cast<int>(time) << std::endl;