module Async::Clock

def self.measure

Measure the execution of a block of code.
def self.measure
	start_time = self.now
	
	yield
	
	return self.now - start_time
end

def self.now

Get the current elapsed monotonic time.
def self.now
	::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
end