switch (event)
case "finish":
break;
case "start":
break;
default:
if typeof event === "Number" ... //set the event time