Or you can use
Process Explorer as a replacement for the Task Manager (you can even set it to open when pressing CTRL+SHIFT+ESC or CTRL+ALT+DEL. I haven't actually seen the regular task manager in a long while

). I didn't see an option to export or generate statistics, but as you can see in
this screenshot I just made that I can keep track of these six graphs for the last 10 minutes (and my horizontal resolution is just 1366

plus it's at an update speed of 1 second, you can change it to 0.5 / 1 / 2 / 5 / 10 seconds so you could have graphs for 2h or more if your screen is big enough

)
You can also see these graphs for the whole system. Oh and I should mention that it only starts generating them when you open the window, which is why I had to wait 10 minutes to make that screenshot
Hope this helps, I bet there are better programs to keep track of things or log this stuff.
Edit: nearly forgot to put in the second link (screenshot) ^^'