module Quartz
Defined in:
quartz.crquartz/any.cr
quartz/atomic.cr
quartz/behaviors/passive.cr
quartz/comparison.cr
quartz/coordinator.cr
quartz/coupleable.cr
quartz/coupled.cr
quartz/coupler.cr
quartz/direct_connection_visitor.cr
quartz/dot_visitor.cr
quartz/dsde/coordinator.cr
quartz/dsde/coupled.cr
quartz/dsde/executive.cr
quartz/dsde/root.cr
quartz/dtss/time_base.cr
quartz/duration.cr
quartz/errors.cr
quartz/event_set.cr
quartz/hooks.cr
quartz/json.cr
quartz/list.cr
quartz/logging.cr
quartz/model.cr
quartz/multi_component/component.cr
quartz/multi_component/model.cr
quartz/multi_component/simulator.cr
quartz/observer.cr
quartz/port.cr
quartz/priority_queues/binary_heap.cr
quartz/priority_queues/calendar_queue.cr
quartz/priority_queues/fibonacci_heap.cr
quartz/priority_queues/heap_set.cr
quartz/priority_queues/ladder_queue.cr
quartz/processor.cr
quartz/processor_allocator.cr
quartz/root.cr
quartz/scale.cr
quartz/simulable.cr
quartz/simulation.cr
quartz/simulator.cr
quartz/state.cr
quartz/time_cache.cr
quartz/time_point.cr
quartz/transitions.cr
quartz/types.cr
quartz/verifiable.cr
quartz/verifiers/checker.cr
quartz/verifiers/numericality.cr
quartz/verifiers/presence.cr
quartz/version.cr
quartz/visitor.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 =
3_u8
-
The minor version number
-
PATCH =
2_u8
-
The patch version number
-
VERSION =
[MAJOR, MINOR, PATCH].compact.join('.')
Class Method Summary
- .colorize_logs=(value : Bool)
- .set_debug_log_level
- .set_io_log_backend
- .set_no_log_backend
- .set_warning_log_level
- .timing(label, display_memory = true, padding_size = 34, &)
-
.version
Returns the current version
Macro Summary
Class Method Detail
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, 'kilo')
duration(2, :kilo)