lean4-htt/library/init/timeit.lean
2016-09-24 16:38:39 -07:00

9 lines
324 B
Text

-- Copyright (c) 2016 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
prelude
import init.string
/- This function has a native implementation that tracks time. -/
def timeit {A : Type} (s : string) (f : unit → A) : A :=
f ()