This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*-mode: python; coding: utf-8 -*- | |
# | |
# svn-import - Import a new release, such as a vendor drop. | |
# | |
# The "Vendor branches" chapter of "Version Control with Subversion" | |
# describes how to do a new vendor drop with: | |
# | |
# >The goal here is to make our current directory contain only the | |
# >libcomplex 1.1 code, and to ensure that all that code is under version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import contextlib | |
import time | |
@contextlib.contextmanager | |
def time_print(prefix): | |
t0 = time.time() | |
yield | |
t1 = time.time() | |
print "'%s' time: %fmsec" % (prefix, (t1-t0)*1000) |
NewerOlder