internal class Program
{
static public void Checker ( Random rnd )
{
}
static void Main(string[] args)
{
Random rnd = new Random();
while ( true )
{
Console.WriteLine(rnd.Next());
Checker(rnd);
}
}
}
internal class Program
{
static void Main(string[] args)
{
Stopwatch stopwatch = new Stopwatch();
stopwatch.Start();
long reverseCounter = 0;
while (true)
{
//▼6초에서 흐른 시간을 역으로 빼면 시간이 거꾸로 출력되어보임
reverseCounter = (6000 - stopwatch.ElapsedMilliseconds) / 1000;
if (reverseCounter > 0)
{
Console.WriteLine(reverseCounter);
}
else
{
stopwatch.Stop();
break;
}
}
}