real time crystal code