### R code from vignette source 'testTimeAndSimpleUse.Rnw' ################################################### ### code chunk number 1: foo ################################################### options(keep.source = TRUE, width = 60) fftwtools1 <- packageDescription("fftwtools") ################################################### ### code chunk number 2: timing1 ################################################### library("fftwtools") ## We increment by powers of 2, but one can use other incrementes ## We choose fftlength = 2^20, but ## **this was reduced to 2^8 for the vignette distribution.** fftLength <- 2^8 set.seed(10) g <- rnorm(fftLength) ##Start the clock ptm <- proc.time() ## Loop through for (i in 1:100){ fft(g) } ## Stop the clock proc.time() - ptm ################################################### ### code chunk number 3: