added time to arduino sketch
added proper build events.