I created a simple timer program but my method cant access the private members, anyone has any idea why.
and the answer is like 3 billion. did i do anythin wrong with the difftieme() funciton.
According to the reference at this site, about time_t: "It is almost universally expected to be an integral value representing the number of seconds elapsed since [...]".
This means that your timer can only get the number of seconds.
Ok thanks, a bunch for your help, one last Q, is there any time value that is a float and not integer, I am gonna search the internet to see if now I guess I gotta use someone else codes (which I dont like because it just doesnt feel right).
EDIT:
I read up on the time() function return value and it states it returns what ever the argument is, only problem is the argument is time_t, is the way to make time_t a float, I gotta do more searching.
jsmith wrote:
> Also, clock_gettime() is a POSIX function that will (usually) return
> fine-grained time values, but I don't know of the POSIX compliance
> of Windows.
It isn't very POSIX-compliant at all... Many of the POSIX functions that are used commonly on UNIX and its various derivatives are completely unavailable in Windows. I have yet to figure out why Microsoft has never even attempted to be POSIX-compliant.