For some reason difftime is only returning whole numbers. My code is pretty simple.
#include <time.h>
int main()
{
    time_t test = time(NULL);
    while (1)
    {
        std::cout << difftime(time(NULL), test) << std::endl;
    }
}
My output looks like
0...
1...
2...
3...
Isn't difftime supposed to return doubles?
 
     
     
     
     
    