I am writing a program that will be used on a Solaris machine. I need a way of keeping track of how many seconds has passed since the start of the program. I m talking very simple here. For example I would have an int seconds = 0; but how would I go about updating the seconds variable as each second passes?
It seems that some of the various time functions that I ve looked at only work on Windows machines, so I m just not sure.
Any suggestions would be appreciated.
Thanks for your time.