AWS Lambda measures your usage time with a metric called GB-second.

Every month you are given 1M free requests, and 400.000 GB-seconds.

GB-seconds are the number of seconds your function runs for, multiplied by the amount of RAM memory consumed.

It’s a computed metrics, calculated multiplying two other metrics, and it’s a reasonable way to measure how many resources your serverless functions consume, in relation to time and memory.