/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
BaseHTTPServer.py | 67 # at the time the request was made!) 74 import time namespace 450 The client ip address and current date/time are prefixed to every 465 """Return the current date and time formatted for a message header.""" 467 timestamp = time.time() 468 year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp) 476 """Return the current time formatted for logging.""" 477 now = time.time() [all...] |
Cookie.py | 53 Most of the time you start by creating a cookie. Cookies come in 61 [Note: Long-time users of Cookie.py will remember using 375 # The _getdate() routine is used to set the expiration time in 377 # current time in the appropriate "expires" format for a 390 from time import gmtime, time namespace 391 now = time()
|
gzip.py | 8 import struct, sys, time, os namespace 77 current time is used. This module ignores the timestamp when 80 return value of time.time() and of the st_mtime member of the 176 mtime = time.time() 287 # if so, it's time to stop; no more members to read.
|
profile.py | 29 import time namespace 123 [ 0] = Time that needs to be charged to the parent frame's function. 126 [ 1] = Total time spent in this frame's function, excluding time in 128 [ 2] = Total time spent in subfunctions, excluding time executing the 141 [2] = Total time spent internal to this function 142 [3] = Cumulative time that this function was present on the stack. In 143 non-recursive functions, this is the total execution time from start 144 to finish of each invocation of a function, including time spent i [all...] |
random.py | 103 None or no argument seeds from current time or from an operating 113 import time namespace 114 a = long(time.time() * 256) # use fractional seconds 656 None or no argument seeds from current time or from an operating 671 import time namespace 672 a = long(time.time() * 256) # use fractional seconds 762 # Initialize from current time 763 import time namespace 834 import time namespace [all...] |
smtpd.py | 76 import time namespace 294 self.__class__.__name__, time.ctime(time.time()), 437 msg['Date'] = time.ctime(time.time())
|
trace.py | 55 import time namespace 117 -g, --timing Prefix each line with the time since the program started. 484 self.start_time = time.time() 622 print '%.2f' % (time.time() - self.start_time), 635 print '%.2f' % (time.time() - self.start_time),
|
webbrowser.py | 10 import time namespace 242 time.sleep(1) 245 time.sleep(4)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_associate.py | 6 import time namespace 20 3 : ("George Michael", "Praying For Time", "Rock"), 373 d.put(key, value) # save the value as is this time
|
test_thread.py | 6 import time namespace 457 time.sleep(0.05)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
run.py | 4 import time namespace 74 #time.sleep(15) # test subprocess not responding 122 time.sleep(i) 277 time.sleep(10)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/multiprocessing/ |
connection.py | 41 import time namespace 74 return time.time() + timeout 77 return time.time() > t 302 time.sleep(0.01)
|
forking.py | 103 import time namespace 155 deadline = time.time() + timeout 161 remaining = deadline - time.time() 165 time.sleep(delay) 188 import time namespace
|
pool.py | 45 import time namespace 326 time.sleep(0.1) 470 time.sleep(0)
|
queues.py | 41 import time namespace 125 deadline = time.time() + timeout 130 timeout = deadline - time.time()
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
lock_tests.py | 6 import time namespace 16 time.sleep(0.01) 274 # Another time, after an explicit clear() 286 t1 = time.time() 288 t2 = time.time() 390 # A second time, to check internal state is still ok. 399 t1 = time.time() [all...] |
test_asynchat.py | 3 import asyncore, asynchat, socket, time namespace 54 time.sleep(0.001) 95 time.sleep(0.01) # Give server time to start accepting. 116 time.sleep(0.01) # Give server time to start accepting.
|
test_compiler.py | 4 import os, sys, time, unittest namespace 8 # How much time in seconds can pass before we print a 'Still working' message. 25 next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL 34 if next_time <= time.time(): 35 next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL
|
test_imaplib.py | 11 import time namespace 30 timevalues = [2000000000, 2000000000.0, time.localtime(2000000000), 127 # Time between requests is short enough that we won't wake
|
test_posix.py | 10 import time namespace 362 now = time.time()
|
test_random.py | 5 import time namespace 24 time.sleep(0.1) 380 # in the seed. Unfortunately, that's a quadratic-time algorithm,
|
test_signal.py | 10 import sys, os, time, errno namespace 98 time.sleep(1) # Give the signal time to be delivered. 111 time.sleep(1) # Give the signal time to be delivered. 131 time.sleep(1) 246 before_time = time.time() 249 time.sleep(self.TIMEOUT_FULL) 250 mid_time = time.time( [all...] |
test_strptime.py | 4 import time namespace 27 """Create time tuple based on current time.""" 28 self.time_tuple = time.localtime() 37 strftime_output = time.strftime(directive, self.time_tuple).lower() 63 strftime_output = time.strftime("%p", self.time_tuple).lower() 73 timezone = time.strftime("%Z", self.time_tuple).lower() 88 strftime_output = time.strftime("%c", magic_date) 89 self.assertEqual(time.strftime(self.LT_ins.LC_date_time, magic_date), 91 strftime_output = time.strftime("%x", magic_date [all...] |
test_telnetlib.py | 3 import time namespace 32 time.sleep(item) 177 start = time.time() 179 self.assertTrue(self.block_short <= time.time() - start) 240 time.sleep(self.block_short) 270 time.sleep(self.block_short) 292 time.sleep(self.block_short)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/wsgiref/ |
handlers.py | 7 import sys, os, time namespace 29 # Weekday and month names for HTTP date/time formatting; always English! 36 year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp) 56 # by default it's a copy of 'os.environ' as of import time, but you can 194 'Date: %s\r\n' % format_date_time(time.time())
|