ebidel/appmetrics.js

Fetching the most recent entry from the performance array

gokatz opened this issue · 2 comments

if the user has made more than one measurement for the given event. Can we pop and return the last entered performance entry?
Though it is not an issue, I think, returning the last entry will be flexible. Thus, opening this issue.

yeah... We should, I think. Users will be able to get the duration array at any time without having to fetch the duration property every time while measuring a metric. How about supporting both getDurationArray and getRecentDuration ??