1.0.0 • Published 8 years ago

workshopper-timer v1.0.0

Weekly downloads
44
License
MIT
Repository
github
Last release
8 years ago

workshopper-timer

Makes sure the submission of a workshop executes for around the same duration as the solution.

Dependency Status NPM version

Installation

npm install --save workshopper-timer

Usage

var exercise = require('workshopper-exercise')();
var filecheck = require('workshopper-exercise/filecheck');
var execute = require('workshopper-exercise/execute');
var comparestdout = require('workshopper-exercise/comparestdout');

var timer = require('workshopper-timer');

exercise = filecheck(exercise);
exercise = execute(exercise);
exercise = comparestdout(exercise);

// 100 = threshold in ms
exercise = timer(exercise, 100);

module.exports = exercise;

License

MIT

1.0.0

8 years ago

0.0.1

8 years ago