| 204 | } |
| 205 | |
| 206 | UniValue gethashespersec(const UniValue& params, bool fHelp) |
| 207 | { |
| 208 | if (fHelp || params.size() != 0) |
| 209 | throw runtime_error( |
| 210 | "gethashespersec\n" |
| 211 | "\nReturns a recent hashes per second performance measurement while generating.\n" |
| 212 | "See the getgenerate and setgenerate calls to turn generation on and off.\n" |
| 213 | "\nResult:\n" |
| 214 | "n (numeric) The recent hashes per second when generation is on (will return 0 if generation is off)\n" |
| 215 | "\nExamples:\n" + |
| 216 | HelpExampleCli("gethashespersec", "") + HelpExampleRpc("gethashespersec", "")); |
| 217 | |
| 218 | // if (GetTimeMillis() - nHPSTimerStart > 8000) |
| 219 | // return (int64_t)0; |
| 220 | return (int64_t)0;/*dHashesPerSec*/; |
| 221 | } |
| 222 | #endif |
| 223 | |
| 224 |
no test coverage detected