cbuchner1 / CudaMiner

a CUDA accelerated litecoin mining application based on pooler's CPU miner
Other
692 stars 304 forks source link

gettimeofday fix #68

Closed erkmos closed 10 years ago

erkmos commented 10 years ago

GetSystemTimeAsFileTime gives the time in 100s of nanoseconds since 1 jan 1600 and the code accounts for that. But the difference to epoch time is in microseconds and is subtracted before the conversion of FILETIME to microseconds. This causes an integer overflow on windows 7 x64 (only tested there).