This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes how to count total times that a task is executed by a Timer? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "how to count total times that a task is executed by a Timer?" Watch "how to count total times that a task is executed by a Timer?" New topic
Author

how to count total times that a task is executed by a Timer?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post
is there any way to count how much time a task is executed by a Timer?


thanks
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
Why don't you just increment a variable every time the task is executed and check that?
raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reply.
can you please explain, where i should put that variable?
for example my code looks like :





thanks
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to count total times that a task is executed by a Timer?
 
It's not a secret anymore!