feat: Add Be and tbd skill, also added Roadmap file

This commit is contained in:
2026-05-10 16:32:12 -04:00
parent 3500ade13f
commit 0bb8885802
29587 changed files with 10611695 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
.idea
.DS_Store
node_modules
gulpfile.js

View File

@@ -0,0 +1,25 @@
# Metrics Timer
Simple timer for use in application metrics
## Example Usage
```javascript
var timer = require('metrics-timer');
var myEvent = require('foo');
myEvent.on('connect', function(id) {
timer.start(id);
});
myEvent.on('disconnect', function(id) {
var eventTime = timer.stop(id);
// outputs milliseconds
console.log(eventTime);
});
```

View File

@@ -0,0 +1,32 @@
var timers = {};
/**
* Start timer.
*
*/
exports.start = function(timer_name, verbose) {
if (verbose === true) {
console.log('[TIMER] start - %s', timer_name);
}
timers[timer_name] = Date.now();
};
/**
* Stop timer and calculate delta.
*
*/
exports.stop = function(timer_name, verbose) {
var delta = Date.now() - timers[timer_name];
if (verbose === true) {
console.log('[TIMER] stop - %s: %s (%s seconds)', timer_name, delta, delta/1000);
}
delete timers[timer_name];
return delta;
};

View File

@@ -0,0 +1,29 @@
{
"name": "application-metrics",
"publishConfig": {
"registry": "http://npm.jibo.com:8080"
},
"repository": {
"type": "git",
"url": "git@github.jibo.com:skills/metrics-timer.git"
},
"version": "0.1.0",
"description": "Simple timer for use in application metrics",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"metrics",
"performance",
"timer"
],
"author": "Andrew Start <start.andrew@jibo.com> (https://github.com/andrewstart)",
"dependencies": {
},
"licenses": [
{
"type": "MIT"
}
]
}