type convertion

I thought about the framerate problem today, expecially for mac users.

I wanted to do the following; take the passed time between two updates and calculate some things and in the end I get a counter and an if statement in update(), so it updates like only every 5th time to simulate framerate.

But i allready stopped here.
I wanted to check the time passed with ofGetElapsedTimeMillis(), so I threw that data into a int and wanted to print it to the console with printf():
imepassed = ofGetElapsedTimeMillis();
But I get a compile error stating:
error: invalid conversion from ‘int’ to ‘const char*’
error: initializing argument 1 of ‘int printf(const char*, …)’
How can I convert types for handling that problem?

play the monkey music white boy!

Mighty C++

printf(" %d", timepassed);