Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)
time() -> floating point number

Return the current time in seconds since the Epoch.
Fractions of a second may be present if the system clock provides them.

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/misc/difftime.py   plexnet(Download)
def worded_diff_time(ctime):
    difftime = py.std.time.time() - ctime
    keys = _time_desc.keys()
    keys.sort()
    for i, key in py.builtin.enumerate(keys):

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/misc/cache.py   plexnet(Download)
    def isexpired(self):
        t = py.std.time.time()
        return t >= self.weight 
 

src/s/y/Sypy-HEAD/tool/difftime.py   Sypy(Download)
def worded_diff_time(ctime):
    difftime = py.std.time.time() - ctime
    keys = _time_desc.keys()
    keys.sort()
    for i, key in py.builtin.enumerate(keys):

src/t/o/tox-1.7.1/tox/_cmdline.py   tox(Download)
def now():
    return py.std.time.time()
 
def main(args=None):
    try:

src/p/y/pytest-sugar-HEAD/pytest_sugar.py   pytest-sugar(Download)
    def pytest_sessionstart(self, session):
        self._sessionstarttime = py.std.time.time()
        verinfo = ".".join(map(str, sys.version_info[:3]))
        self.write_line(
            "Test session starts "
    def summary_stats(self):
        session_duration = py.std.time.time() - self._sessionstarttime
 
        print("\nResults (%.2fs):" % round(session_duration, 2))
        if self.count('passed') > 0:

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/plugin/pytest_terminal.py   plexnet(Download)
    def pytest_sessionstart(self, session):
        self.write_sep("=", "test session starts", bold=True)
        self._sessionstarttime = py.std.time.time()
 
        verinfo = ".".join(map(str, sys.version_info[:3]))
    def summary_stats(self):
        session_duration = py.std.time.time() - self._sessionstarttime
 
        keys = "failed passed skipped deselected".split()
        for key in self.stats.keys():

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/misc/testing/test_cache.py   plexnet(Download)
    def test_cache_eviction(self):
        self.cache.getorbuild(17, lambda: 17)
        endtime = py.std.time.time() + self.maxsecs * 10 
        while py.std.time.time() < endtime: 
            if self.cache.getentry(17) is None: 

src/n/u/nupic-linux64-HEAD/lib/python2.6/site-packages/_pytest/terminal.py   nupic-linux64(Download)
    def pytest_sessionstart(self, session):
        self._sessionstarttime = py.std.time.time()
        if not self.showheader:
            return
        self.write_sep("=", "test session starts", bold=True)
    def summary_stats(self):
        session_duration = py.std.time.time() - self._sessionstarttime
 
        keys = "failed passed skipped deselected xfailed xpassed".split()
        for key in self.stats.keys():

src/p/y/pytest-sugar-0.3.4/pytest_sugar.py   pytest-sugar(Download)
    def pytest_sessionstart(self, session):
        self._sessionstarttime = py.std.time.time()
        verinfo = ".".join(map(str, sys.version_info[:3]))
        self.write_line(
            "Test session starts "
    def summary_stats(self):
        session_duration = py.std.time.time() - self._sessionstarttime
 
        print("\nResults (%.2fs):" % round(session_duration, 2))
        if self.count('passed') > 0:

src/p/y/py-1.4.20/testing/path/test_cacheutil.py   py(Download)
    def test_cache_eviction(self):
        self.cache.getorbuild(17, lambda: 17)
        endtime = py.std.time.time() + self.maxsecs * 10
        while py.std.time.time() < endtime:
            try:

  1 | 2  Next