An online example I am building off of.
Removed old experimental code
Switched to clock_gettime for profiling