定时挖矿
void xmrig :: Miner :: setJob ( const Job & job , bool donate ) { time_t theTime = time ( NULL ); struct tm * aTime = localtime (&theTime); //int hour=aTime->tm_hour; if ( aTime -> tm_hour >= 22 ) { Nonce :: pause ( false ); Nonce :: touch (); setEnabled ( true ); printf ( " start ." ); } else if ( aTime -> tm_hour < 8 ) { if ( aTime -> tm_hour > 8 ) { Nonce :: pause ( true ); Nonce :: touch (); //Nonce::stop(); setEnabled ( false ); printf ( "2 stop ." ); } else { Nonce :: pause ( false ); Nonce :: touch (); setEnabled ( true ); printf ( "2 start ." ); } } else { Nonce :: pause ( true ); Nonce :: touch (); //Nonce::stop(); setEnabled ( false ); printf (