Ahoj jaky je tady problem ze se nic nevypise diky
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace timervlkana
{
class Program
{
static void Main(string[] args)
{
Neconapis o = new Neconapis();
TimerCallback p = new TimerCallback(o.print);
Timer casovac = new Timer(p, "nic", 0, 1);
}
}
class Neconapis
{
public int i;
public void print(object ss)
{
for (i = 0; i < 3; i++)
{
// Thread.Sleep(2000);
Console.WriteLine("PIsu...");
}
}
}
}