import sys

from resources.lib.common import router
from resources.lib.common import utils


if __name__ == "__main__":
    _plugin = sys.argv[0]
    _handle = int(sys.argv[1])
    _params = sys.argv[2][1:]

    with utils.timing(_params):
        router.dispatch(_plugin, _handle, _params)
