Skip to content

My timer is slower than Scratch's timer #3666

Open
@RixInGithub

Description

@RixInGithub

Hello, coding and Scratching guys,

since the past year's November, RixxyX's project was good as dead, to be honest. So, I sat down to my chair and thought that I wouldn't let this happen. And, I did sorta that what I wanted, but, I see, when I make code like:

when gf clicked
reset timer
start measuring time :: #773c00
wait until <(time :: #773c00) = [2000]>
end measuring time :: #773c00
say (timer)

I see, that the process took... 51.32 seconds, instead of 2?! As described in the title, my timer is slower than Scratch's timer. My code for time is:

	startTime(args) {
		time = 0
		isMeasure = true
	}
	endTime(args) {
		isMeasure = false
	}
	returnTime(args) {
		if (isMeasure == true) {
			time += 1
		}
		return time
	}

In the start, written as:

var isMeasure = false
var time = 0

I have no explanation to what cause to my extension going... Nuts. Finally, can somebody help me to make my timer equal to Scratch's one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions