如何在netlogo上创建计时器? [英] How do I create a timer on netlogo?

查看:138
本文介绍了如何在netlogo上创建计时器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的迷宫项目,我想创建一个监视按钮,以跟踪乌龟从头到尾花费多长时间.我将如何为计时器编写代码?

For my maze project, I want to create a monitor button that keeps track of how long it takes for the turtle to get from start to finish. How would I code for the timer?

推荐答案

查看reset-timertimer以及在文档中.在迷宫设置过程中,执行reset-timer.在迷宫奔跑期间,您可以使用timer

Check out reset-timer and timer and in the docs. During maze setup, do a reset-timer. During the running of maze you can check on elapsed time with timer

这篇关于如何在netlogo上创建计时器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆