seripap / vainglory

(*DEPRECATED*: The API no longer exists, so this will no longer work) A Javascript API Client wrapper for Vainglory
MIT License
29 stars 7 forks source link

Feature: Time it took to make a call #19

Closed Skillz4Killz closed 7 years ago

Skillz4Killz commented 7 years ago

Is there a way to add on to the result of a call similar to rate limit where it shows how much time it took to make a call?

seripap commented 7 years ago

you could do something like console.time('request') before you call the function then call console.timeEnd('request') when the request resolves.

Skillz4Killz commented 7 years ago

Thank you!!