aboutsummaryrefslogtreecommitdiffstats
path: root/mako/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'mako/util.py')
-rw-r--r--mako/util.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mako/util.py b/mako/util.py
index 4f1426d..07f7531 100644
--- a/mako/util.py
+++ b/mako/util.py
@@ -9,6 +9,7 @@ import collections
import operator
import os
import re
+import timeit
from mako import compat
@@ -180,7 +181,7 @@ class LRUCache(dict):
def __init__(self, key, value):
self.key = key
self.value = value
- self.timestamp = compat.time_func()
+ self.timestamp = timeit.default_timer()
def __repr__(self):
return repr(self.value)
@@ -191,7 +192,7 @@ class LRUCache(dict):
def __getitem__(self, key):
item = dict.__getitem__(self, key)
- item.timestamp = compat.time_func()
+ item.timestamp = timeit.default_timer()
return item.value
def values(self):