I would like to create a time counter (count seconds/miliseconds or what ever) that will return the amount of time counted what I want to. I don’t want to preform any kind of task using this counter, I just want to know the amount of time counted.
Is it possible?how?
Guava has a Stopwatch class encapsulating this.
EDIT:
If what you need is a scheduler, then use a ScheduledExecutorService.