#include #include "timer.h" using namespace std; int main() { for (timer t {0, 0, 10}; t > 0; --t) { cout << t << "\n"; } //t is destructed at this point, so it outputs the message "Time's up!". return EXIT_SUCCESS; }