I stubbed out the sys::Time class - it doesn't do much other than wrap nanosecond ticks and format time. But let's start using it whenever we have a timestamp. I also changed Duration.nanos to Duration.ticks to match the Time.ticks method. Fan will use the term "ticks" to denote nanosecond ticks as the standard measurement of time.
I also stubbed out sys::Log which will be the very simple, standardized logging API:
I removed sys::Log for now - I ended up not using it for either compiler or build, so it seems like a candidate to get pushed up the stack rather than clutter sys.
brian Mon 3 Jul 2006
I stubbed out the sys::Time class - it doesn't do much other than wrap nanosecond ticks and format time. But let's start using it whenever we have a timestamp. I also changed Duration.nanos to Duration.ticks to match the Time.ticks method. Fan will use the term "ticks" to denote nanosecond ticks as the standard measurement of time.
I also stubbed out sys::Log which will be the very simple, standardized logging API:
class Log { static Log[] list() static Str:Log map() new make(Str name) Str name() LogLevel level := LogLevel.message Void error(Str message, Err err := null) Void warning(Str message, Err err := null) Void message(Str message, Err err := null) Void debug(Str message, Err err := null) virtual Void log(Time time, LogLevel level, Str message, Err err) }brian Sat 4 Nov 2006
I removed sys::Log for now - I ended up not using it for either compiler or build, so it seems like a candidate to get pushed up the stack rather than clutter sys.