MCPcopy Index your code
hub / github.com/microsoft/SandDance / constructor

Method constructor

docs/app/js/sanddance-app.js:54883–54901  ·  view source on GitHub ↗
(name, type)

Source from the content-addressed store, hash-verified

54881var _hiResTimestampDefault = parcelHelpers.interopDefault(_hiResTimestamp);
54882class Stat {
54883 constructor(name, type){
54884 (0, _definePropertyDefault.default)(this, "name", void 0);
54885 (0, _definePropertyDefault.default)(this, "type", void 0);
54886 (0, _definePropertyDefault.default)(this, "sampleSize", 1);
54887 (0, _definePropertyDefault.default)(this, "time", void 0);
54888 (0, _definePropertyDefault.default)(this, "count", void 0);
54889 (0, _definePropertyDefault.default)(this, "samples", void 0);
54890 (0, _definePropertyDefault.default)(this, "lastTiming", void 0);
54891 (0, _definePropertyDefault.default)(this, "lastSampleTime", void 0);
54892 (0, _definePropertyDefault.default)(this, "lastSampleCount", void 0);
54893 (0, _definePropertyDefault.default)(this, "_count", 0);
54894 (0, _definePropertyDefault.default)(this, "_time", 0);
54895 (0, _definePropertyDefault.default)(this, "_samples", 0);
54896 (0, _definePropertyDefault.default)(this, "_startTime", 0);
54897 (0, _definePropertyDefault.default)(this, "_timerPending", false);
54898 this.name = name;
54899 this.type = type;
54900 this.reset();
54901 }
54902 setSampleSize(samples) {
54903 this.sampleSize = samples;
54904 return this;

Callers

nothing calls this directly

Calls 1

resetMethod · 0.95

Tested by

no test coverage detected