There's a delay in between the triggerserver and onActionServerSide because it has to send data from the client to the server.
Try this code:
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.scheduleevent(1, "ScheduledEvent", timevar2);
}
function onScheduledEvent(init) {
player.chat = "This took event " @ timevar2 - init @ " seconds!";
}