← 수업 제작 도구
홈 › Components › Multiple Choice and Checkboxes › 화면 2

화면 2. Choice.timeSinceSubmit [source]

원본: Computation Layer 문서(Multiple Choice and Checkboxes) · Try It (원본 화면)

화면 번호2 / 21
문서 항목 설명 (원문)Gets the seconds (plus milliseconds) since the "Submit" button was pressed.

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 2 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1레이블 없는 그래프그래프
# This number sink uses timeSincePress to 
# create a timer that starts when the submit button
# is pressed and increases.
▷ 이 number sink는 timeSincePress를 사용해, 제출 버튼을 누른 순간부터 계속 늘어나는 타이머를 만든다.

number("t_0"): choice.timeSinceSubmit()
▶ 그래프의 변수 "t_0"은 객관식 구성요소 choice의 "Submit" 버튼을 누른 뒤 지난 시간(choice.timeSinceSubmit())으로 한다.
number("이름")은 그래핑 계산기 안의 변수 값을 정하고, choice.timeSinceSubmit()은 choice의 "Submit" 버튼을 누른 뒤 지난 시간(초)을 알려 주므로 시간이 지나면 t_0의 값도 같이 바뀐다.