Quoting pakko <for...@gimpusers.com>:

> :
> :
> :
> Another issue concerns time measuring. I would like to measure the time gimp
> takes for applying the different filters. Is it somehow possible save a
> timestamp to a file with script-fu?

(set! port (open-output-file "timings.log"))

(set! starttime (realtime)) ; integer number of seconds since Unix epoch
(apply-some-filterA drawableA paramA paramB)
(display (- (realtime) starttime) port) ; elapsed time (in seconds)
(newline port)

(set! starttime (realtime))
(apply-some-filterB drawableB paramD paramE paramF)
(display (- (realtime) starttime) port)
(newline port)

(close-output-port port)

Gimp-developer mailing list

Reply via email to