// This program pprovides an example of how to use timer interrupts.
// Example by John Ousterhout.

#include <atomic>
#include <iostream>
#include "timer.hh"

using namespace std;

void timer_interrupt_handler() {
    cout << "Timer interrupt occurred" << endl;
}

int main(int argc, char *argv[]) {
    // specify microsecond interval and function to call
    timer_init(500000, timer_interrupt_handler);
    while (true) {}
}
