Post
Topic
Board Mining (Altcoins)
Re: NPlusMiner - Pool/Algo switching miner with Plus logic (NVidia)
by
JukNi
on 25/02/2018, 02:30:34 UTC
Hi,

Could you add countdown timer for that 300/180/30 sec times? It would be nice to see how much more to go?
Something like this https://1drv.ms/u/s!AmwHZ3fXi4jhgaZ3e_61KUFMmaCjqQ

Code:
Function Start-Countdown
{ #>
    Param(
        [Int32]$Seconds = 300,
        [string]$Message = "Mining for 300 seconds..."
    )
    ForEach ($Count in (1..$Seconds))
    {   Write-Progress -Id 1 -Activity $Message -Status "Waiting for $Seconds seconds, $($Seconds - $Count) left" -PercentComplete (($Count / $Seconds) * 100)
        Start-Sleep -Seconds 1
    }
    Write-Progress -Id 1 -Activity $Message -Status "Completed" -PercentComplete 100 -Completed
}

Start-Countdown -Seconds 300 -Message "Mining..."

(c) Martin9700 @ www.spiceworks.com