module Quartz

Defined in:

quartz/version.cr
quartz/types.cr
quartz/scale.cr
quartz/duration.cr
quartz/time_point.cr
quartz/event_set.cr
quartz/time_cache.cr
quartz/comparison.cr
quartz/state.cr
quartz/any.cr
quartz/list.cr
quartz/logging.cr
quartz/errors.cr
quartz/observer.cr
quartz/hooks.cr
quartz/verifiers/checker.cr
quartz/verifiers/presence.cr
quartz/verifiers/numericality.cr
quartz/verifiable.cr
quartz/port.cr
quartz/coupleable.cr
quartz/coupler.cr
quartz/transitions.cr
quartz/priority_queues/binary_heap.cr
quartz/priority_queues/fibonacci_heap.cr
quartz/priority_queues/heap_set.cr
quartz/model.cr
quartz/atomic.cr
quartz/coupled.cr
quartz/behaviors/passive.cr
quartz/simulable.cr
quartz/processor.cr
quartz/simulator.cr
quartz/coordinator.cr
quartz/root.cr
quartz/dsde/executive.cr
quartz/dsde/coupled.cr
quartz/dsde/coordinator.cr
quartz/dsde/root.cr
quartz/multi_component/component.cr
quartz/multi_component/model.cr
quartz/multi_component/simulator.cr
quartz/dtss/time_base.cr
quartz/visitor.cr
quartz/processor_allocator.cr
quartz/dot_visitor.cr
quartz/direct_connection_visitor.cr
quartz/simulation.cr
quartz.cr

Constant Summary

ALLOWED_SCALE_UNITS = ["yocto", "zepto", "atto", "femto", "pico", "nano", "micro", "milli", "base", "kilo", "mega", "giga", "tera", "peta", "exa", "zetta", "yotta"]
FORMATTER = ::Log::Formatter.new do |entry, io| message = entry.message colorize = (@@colors && io.tty?) && Colorize.enabled? if colorize color = LOGGER_COLORS.fetch(entry.severity, :default) io << ((entry.timestamp.to_s("(%T:%L)")).colorize(color)) (io << (" ❯ ".colorize(:black))) << message else ((io << entry.severity.label[0]) << ": ") << (entry.timestamp.to_s("(%T:%L)")) (io << " ❯ ") << message end end
Log = ::Log.for(self)
MAJOR = 0_u8

The major version number

MINOR = 6_u8

The minor version number

PATCH = 0_u8

The patch version number

VERSION = [MAJOR, MINOR, PATCH].compact.join('.')

Class Method Summary

Macro Summary

Class Method Detail

def self.colorize_logs=(value : Bool) #

[View source]
def self.set_debug_log_level #

[View source]
def self.set_io_log_backend #

[View source]
def self.set_no_log_backend #

[View source]
def self.set_warning_log_level #

[View source]
def self.timing(label, display_memory = true, padding_size = 34, &) #

[View source]
def self.version #

Returns the current version


[View source]

Macro Detail

macro duration(length, unit = "base") #

The duration macro is syntax sugar to construct a new Duration struct.

Usage

duration must receive a number literal along with an optional scale unit. The scale unit can be specified with a constant expression (e.g. 'kilo'), or with a Scale struct.

duration(2)                # => Duration.new(2, Scale::BASE)
duration(2, Scale.new(76)) # => Duration.new(2, Scale.new(76))
duration(2, Scale::KILO)   # => Duration.new(2, Scale::KILO)
duration(2, kilo)          # => Duration.new(2, Scale::KILO)

If specified with a constant expression, the unit argument can be a string literal, a symbol literal or a plain name.

duration(2, kilo)
duration(2, 

[View source]