{"size": 339, "ext": "js", "max_stars_repo_path": "TimeInterval.js", "max_stars_repo_name": "fsxfreak/Ritual-of-Magic", "max_stars_repo_stars_event_min_datetime": "2016-07-30T16:36:57.000Z", "max_stars_repo_stars_event_max_datetime": "2016-07-30T16:36:57.000Z", "max_issues_repo_path": "TimeInterval.js", "max_issues_repo_name": "fsxfreak/Ritual-of-Magic", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "TimeInterval.js", "max_forks_repo_name": "fsxfreak/Ritual-of-Magic", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.2142857143, "max_line_length": 51, "alphanum_fraction": 0.7020648968}
#pragma strict

public class TimeInterval
{
	private var duration : float = 0;
	private var startTime : float = 0;

	public function TimeInterval(forDuration : float) 
		{ duration = forDuration; }
	public function start() 
		{ startTime = Time.time; }
	public function check() : boolean 
		{ return (Time.time - startTime) > duration; }
}