{"size": 522, "ext": "js", "max_stars_repo_path": "enginejs/modules/enginejs-time.js", "max_stars_repo_name": "drummertom999/nebulous-workshop", "max_stars_repo_stars_event_min_datetime": "2017-10-19T18:39:15.000Z", "max_stars_repo_stars_event_max_datetime": "2017-10-19T18:39:15.000Z", "max_issues_repo_path": "enginejs/modules/enginejs-time.js", "max_issues_repo_name": "drummertom999/nebulous-workshop", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "enginejs/modules/enginejs-time.js", "max_forks_repo_name": "drummertom999/nebulous-workshop", "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": 20.88, "max_line_length": 87, "alphanum_fraction": 0.5114942529}
// *******************************************
//# sourceURL=modules/enginejs-time.js
// *******************************************

Engine.Time =
{
	high_precision : self.performance !== undefined && self.performance.now !== undefined,

	Now : function()
	{
		return Engine.Time.high_precision? self.performance.now() : Date.now();
	},

	Sleep : function(milliseconds)
	{
		var start = Engine.Time.Now();
		for(var i = 0; i < 1e7; i++)
		{
			if((Engine.Time.Now() - start) > milliseconds)
			{
				break;
			}
		}
	}
};