X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.runtime%2Fscl%2FDebug.scl;h=7ccad037e2ad9629528a6339096d494b633044cf;hp=ba0c7baa9a30f8d96b8391bc066629423ef024b3;hb=53ed96e828ad57679b6933ebde323b7869191c94;hpb=86a372422ad1eb876da520d34871c8034f528bcc diff --git a/bundles/org.simantics.scl.runtime/scl/Debug.scl b/bundles/org.simantics.scl.runtime/scl/Debug.scl index ba0c7baa9..7ccad037e 100644 --- a/bundles/org.simantics.scl.runtime/scl/Debug.scl +++ b/bundles/org.simantics.scl.runtime/scl/Debug.scl @@ -1,6 +1,8 @@ import "Prelude" import "JavaBuiltin" as Java +import "Logging" as LOGGER + importJava "java.lang.System" where nanoTime :: () -> Long @@ -21,7 +23,7 @@ reportTime f = runProc do result = f endTime = nanoTime () time = Java.l2d (endTime-beginTime) * 1e-9 - print "time \(time) s" + LOGGER.info "time \(time) s" result reportTimeM :: String -> ( a) -> a @@ -30,8 +32,8 @@ reportTimeM task f = runProc do result = f endTime = nanoTime () time = Java.l2d (endTime-beginTime) * 1e-9 - print "\(task): \(time) s" - result + LOGGER.info "\(task): \(time) s" + result """ Prints the given text and returns