Just attach the entire part you want time in the time expression (this works in most implementations, including Racket):
(time (rest-of-program))
You can also use the Unix time command if you are using Linux / OSX / BSD / etc., For example.
time ./my_program
Rafe Kettler
source share