How does one printf the value within a typedef std::chrono::milliseconds

I have a typedef std::chrono::milliseconds delay = 5000ms;

I can adjust this during runtime, e.g. delay += 1000ms etc.

For testing I wish to print out the delay value using a printf statement.

Probably very simply but it’s a Monday morning and I’m struggling to figure out the syntax to printout the stored value within typedef milliseconds (e.g. simply using printf("%u", delay); is flagged as an clang error).


use printf( “%d”, delay.count() );