@@ -172,6 +172,10 @@ allocations, and the total number of bytes its execution caused to be allocated,
172
172
returning the value of the expression. Any time spent garbage collecting (gc) or
173
173
compiling is shown as a percentage.
174
174
175
+ In some cases the system will look inside the `@time` expression and compile some of the
176
+ called code before execution of the top-level expression begins. When that happens, some
177
+ compilation time will not be counted. To include this time you can run `@time @eval ...`.
178
+
175
179
See also [`@timev`](@ref), [`@timed`](@ref), [`@elapsed`](@ref), and
176
180
[`@allocated`](@ref).
177
181
264
268
A macro to evaluate an expression, discarding the resulting value, instead returning the
265
269
number of seconds it took to execute as a floating-point number.
266
270
271
+ In some cases the system will look inside the `@elapsed` expression and compile some of the
272
+ called code before execution of the top-level expression begins. When that happens, some
273
+ compilation time will not be counted. To include this time you can run `@elapsed @eval ...`.
274
+
267
275
See also [`@time`](@ref), [`@timev`](@ref), [`@timed`](@ref),
268
276
and [`@allocated`](@ref).
269
277
@@ -323,6 +331,10 @@ A macro to execute an expression, and return the value of the expression, elapse
323
331
total bytes allocated, garbage collection time, and an object with various memory allocation
324
332
counters.
325
333
334
+ In some cases the system will look inside the `@timed` expression and compile some of the
335
+ called code before execution of the top-level expression begins. When that happens, some
336
+ compilation time will not be counted. To include this time you can run `@timed @eval ...`.
337
+
326
338
See also [`@time`](@ref), [`@timev`](@ref), [`@elapsed`](@ref), and
327
339
[`@allocated`](@ref).
328
340
0 commit comments