jweinst1
5/12/2016 - 9:33 PM

keeps track of time of seconds in an object

keeps track of time of seconds in an object

//time object that gets called 
function timeobj(){
	this.date = new Date();
	this.seconds = function(){
		return (new Date().getTime()-this.date.getTime())/1000;
	};
}