Use the Ceylon way of getting to the nanosecond clock rather than calling out to Java.
Use the Ceylon way of getting to the nanosecond clock rather than calling out to Java. Bring the function f into run as an anonymous function.
Use the Ceylon way of getting to the nanosecond clock rather than calling out to Java. Take on board Gavin King's suggestion of using a local class instead of a factory function.