solo-io / proxy-runtime

Apache License 2.0
86 stars 25 forks source link

How to work on date function in WASM? #51

Closed anishmarokeyGitHub closed 3 years ago

anishmarokeyGitHub commented 3 years ago

I need to find the time taken between a request and response. For that I taught of adding date in Request and once we get response back take the current date time calculate the time difference. But when I am adding Date.Now it wont return anything.

How to use date functions or is there any better approaches?

anishmarokeyGitHub commented 3 years ago

I got a method to find the time: get_current_time_nanoseconds()