Original Post
Hey all; I am writing a program in which I need to track the "user" time. At first, we were going to use getrusage(), but we can't get it to work in visual studio (apparently it's not in any available libraries -- only for linux?). What other ways are there to track "user" time that are compatible with both windows visual studio and linux g++? Would the clock() function in do this, or would it track "real-world" time only? How would I use clock() to track the # of milliseconds that the program has been running? Thanks for the help, fellas.