mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
13 lines
235 B
Python
13 lines
235 B
Python
from time import sleep
|
|
|
|
|
|
def handler(event, context):
|
|
start = context.get_remaining_time_in_millis()
|
|
sleep(0.1)
|
|
stop = context.get_remaining_time_in_millis()
|
|
|
|
return {
|
|
"start": start,
|
|
"stop": stop
|
|
}
|