Fix time() in non-OpenSesame mode and add examples