removed dependency on luasocket. Swapped socket.getTime for os.clock