I've created a timer in a game that I'm making and if you run it you see that it counts 28 times per
second and I'm trying to make it so that it only counts up once every second. I tried using the on-tick function at the end of my code but that doesn't give me the desired result. Let me know what
you think: I'm using the most current version of Dr Racket on beginner language with the universeandimage teachpacks. I'm new and it says to only post the relevant code so I'll only show you thecode where a timer is involved.

The game i'm making a lot of code i'm not showing but the relevant code includes:

PHP Code:
(define (worktimer a-world)
  (+ (
world-init-time a-world) (world-timer a-world)))

(
define (draw-timer a-world a-scene)
  (
place-image (text (number->string (world-timer a-world)) 40 "black"60 40 a-scene))



(
define-struct world (rocket alien dir shot timer starting-time))

(
define INIT-WORLD (make-world ROCKET ALIEN INIT-DIR false 1 0))

(
define (create-new-world a-world
  (
make-world 
   
(world-rocket a-world
   (
move-alien (world-alien a-world) (world-dir a-world)) 
   (
compute-new-direction (move-alien (world-alien a-world) (world-dir a-world)) 
                          (
world-dir a-world))
   (
move-shot (world-shot a-world))(worktimer a-world)1))


(
big-bang INIT-WORLD
            
(on-draw draw-world)
            (
on-key process-key)
            (
on-tick create-new-world)
            (
stop-when game-over?)) 
Let me know if you need more information or all of my code, sorry if I made any formatting
mistakes I'm new D: