view benchmark.m @ 1312:6d64b57caf46 feature/poroelastic

Add viscoelastic regular interfaces
author Martin Almquist <malmquist@stanford.edu>
date Tue, 21 Jul 2020 21:07:37 -0700
parents f9a65e62c5e5
children
line wrap: on
line source

function benchmark(func, N)
    default_arg('N',100);

    tic
    profile on

    for i = 1:N
        func();
    end

    profile viewer
end