"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Triggers_1 = __importDefault(require("./Triggers/Triggers"));
class Timing {
    messagePrefix;
    postMessage;
    static MESSAGE_PREFIX = 'timing';
    triggers;
    /** @internal */
    constructor(messagePrefix, postMessage) {
        this.messagePrefix = messagePrefix;
        this.postMessage = postMessage;
        this.triggers = new Triggers_1.default(this.getMessagePrefix(), this.postMessage);
    }
    getMessagePrefix() {
        return this.messagePrefix + '.' + Timing.MESSAGE_PREFIX;
    }
}
exports.default = Timing;
//# sourceMappingURL=Timing.js.map