public static void process(String s, int durationInMillis) {
        if(!process)
            return;
        try {
            Thread.sleep(durationInMillis);
        } catch (InterruptedException e) {
            // ignore
        }
    }