MCPcopy Create free account
hub / github.com/aws/aws-cli / TimeUtils

Class TimeUtils

awscli/s3transfer/bandwidth.py:43–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43class TimeUtils:
44 def time(self):
45 """Get the current time back
46
47 :rtype: float
48 :returns: The current time in seconds
49 """
50 return time.time()
51
52 def sleep(self, value):
53 """Sleep for a designated time
54
55 :type value: float
56 :param value: The time to sleep for in seconds
57 """
58 return time.sleep(value)
59
60
61class BandwidthLimiter:

Callers 5

test_timeMethod · 0.90
test_sleepMethod · 0.90
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by 2

test_timeMethod · 0.72
test_sleepMethod · 0.72