Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double primesPerSecondSum = 0.0;
- double primesPerSecondCount = 0.0;
- while( true )
- {
- // query new work
- jhMiner_queryWork_primecoin();
- // calculate stats every second tick
- if( loopCounter&1 )
- {
- // ...
- if( workData.dataIsValid )
- {
- primesPerSecondSum += primesPerSecond;
- primesPerSecondCount += 1.0;
- printf("primes/s: %d / %d, best difficulty: %f\n", (sint32)primesPerSecond, (sint32)(primesPerSecondSum / primesPerSecondCount),(float)primeDifficulty);
- }
- }
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement