studio-timer
Timer plugin for node studio
This plugin calculates the time of the actor execution and then send the result to a given actor
Usage
var Studio = ;var timer = ;//('studio-timer');Studio; id:'myLogTimerActor' { //In this example we just log, but we can send this result to a database, StatsD or any place console; }; var sender = id:'sender'{};var receiver = id:'receiver'{return 'Hello';};sender;
Remember since Studio uses Baconjs you can add throttle, buffer,skip or any transformation for your actor who is going to log the time