Ejemplo n.º 1
0
    def present_stream(self):
        # Each stream item presented for a pre-specified duration
        cd = CountDown(self.item_duration)
        sw = Stopwatch()
        for item in self.rsvp_stream:
            cd.reset()
            sw.reset()
            fill()
            blit(item, registration=5, location=P.screen_c)
            flip()

            #print(cd.elapsed)
            while cd.counting():
                ui_request()
            print(sw.elapsed())
            sw.reset()
Ejemplo n.º 2
0
	def present_stream(self):
		duration_cd = CountDown(self.item_duration)
		isi_cd = CountDown(self.isi)
		item = self.rsvp_stream.pop()
		fill()
		blit(item[0], registration=5, location=P.screen_c)
		flip()

		duration_cd.reset()
		while duration_cd.counting():
			pass
		
		fill()

		if item[1]:
			self.temporal_presentation_times.append([self.evm.trial_time_ms, item[2]])
		isi_cd.reset()
		while isi_cd.counting():
			pass