Re: Closing Command Line Window in Batch Mode (Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting pakko <forums@xxxxxxxxxxxxx>:

> :
> :
> :
> 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
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux