lean4-htt/library/init/timeit.lean

9 lines
327 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 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 {α : Type} (s : string) (f : unit → α) : α :=
f ()