From db4c329aff4621e05b92a55be4f18173f5a4f655 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 17 Apr 2014 21:49:07 -0500 Subject: All: perf test, Makefile refactor, add *host-language* Other: - bash,make,postscript: quasiquote of vectors - Fix Java slurp - add time function to core.mal - switches on *host-language* for make time-secs vs time-ms - Ignore */experiments directories --- python/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/core.py') diff --git a/python/core.py b/python/core.py index 54737aa..d10047d 100644 --- a/python/core.py +++ b/python/core.py @@ -1,4 +1,4 @@ -import copy +import copy, time from itertools import chain import mal_types as types @@ -130,6 +130,7 @@ ns = { '-': lambda a,b: a-b, '*': lambda a,b: a*b, '/': lambda a,b: int(a/b), + 'time-ms': lambda : int(time.time() * 1000), 'list': types._list, 'list?': types._list_Q, -- cgit v1.2.3