Function
get-vcpu-ms
Gets the amount of vCPU time that has passed since this sandbox was started, in milliseconds.
This function returns only time spent running on a vCPU, and does not include time spent performing any I/O operations. However, it is based on clock time passing, and so will include time spent executing hostcalls, is heavily affected by what core of what CPU is running the code, and can even be influenced by the state of the CPU.
As a result, this function should not be used in benchmarking across runs. It can be used, with caution, to compare the runtime of different operations within the same sandbox.
get-vcpu-ms: func() -> vcpu-ms;