Hi , it's me again. I just came across predfine macros and was wondering how to use it so, I played around with one of the macros.
The output of the time will always remain the same what ever code I put between them so, is there a way to update the time to see some effect, or am I doing something wrong with the code i.e. the time of the code executing is too fast to see anything?Code:#include <iostream> #define __TIMESTAMP__ using namespace std; int main() { cout << "Start time: \n" << __TIMESTAMP__ << endl; for(int x = 0; x < 5; x++) cout << x; cout << "End time is: \n" << __TIMESTAMP__ << endl; return 0; }
Another question is, am I using the macros right? I didn't know how to output it in the first place but thought what the hell...try and cout the thing
-Kaminaga