All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.internal.patchers.DurationPatcher Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
package com.googlecode.gwt.test.internal.patchers;

import com.google.gwt.core.client.Duration;
import com.googlecode.gwt.test.patchers.PatchClass;
import com.googlecode.gwt.test.patchers.PatchMethod;

@PatchClass(Duration.class)
class DurationPatcher {

    @PatchMethod
    static double currentTimeMillis() {
        return System.currentTimeMillis();
    }

    @PatchMethod
    static int uncheckedConversion(double elapsed) {
        return (int) elapsed;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy