//
//  CRSharedTimer.h
//  CRKit
//
//  Created by Yaroslav Glushchenko on 11/23/11.
//  Copyright 2011 Neatberry. All rights reserved.
//

//////////////////////////////////////////////////////////////////////
// Timer to be used with a bunch of items
//////////////////////////////////////////////////////////////////////
@interface CRSharedTimer : NSObject
{
	int				runCount;
	NSTimeInterval	timerInterval;
	NSString*		messageName;
	NSTimer*		timer;
}

- (id)initWithInterval:(NSTimeInterval)interval message:(NSString *)message;
+ (id)timerWithInterval:(NSTimeInterval)interval message:(NSString *)message;

- (void)mark;	// +1 to "runCount"
- (void)unmark;	// -1 to "runCount"

@end