Module core.time
Module containing core time functionality, such as Duration (which
    represents a duration of time) or MonoTime (which represents a
    timestamp of the system's monotonic clock).
Various functions take a string (or strings) to represent a unit of time
    (e.g. convert!("days", "hours")(numDays)). The valid strings to use
    with such functions are "years", "months", "weeks", "days", "hours",
    "minutes", "seconds", "msecs" (milliseconds), "usecs" (microseconds),
    "hnsecs" (hecto-nanoseconds - i.e. 100 ns) or some subset thereof. There
    are a few functions that also allow "nsecs", but very little actually
    has precision greater than hnsecs.
    
Cheat Sheet    | Symbol | Description | 
|---|
    | Types | 
    | Duration | Represents a duration of time of weeks
    or less (kept internally as hnsecs). (e.g. 22 days or 700 seconds). | 
    | TickDuration | DEPRECATED Represents a duration of time in
    system clock ticks, using the highest precision that the system provides. | 
    | MonoTime | Represents a monotonic timestamp in
    system clock ticks, using the highest precision that the system provides. | 
    | Functions | 
    | convert | Generic way of converting between two time
    units. | 
    | dur | Allows constructing a Durationfrom
    the given time units with the given length. | 
    | weeksdayshours
 minutessecondsmsecs
 usecshnsecsnsecs | Convenience aliases for dur. | 
    | abs | Returns the absolute value of a duration. | 
    
    
				
				
					Functions
					
						
						
							| Name | Description | 
						
							| 
									abs(duration)
								 | Returns the absolute value of a duration. | 
						
							| 
									convClockFreq(ticks, srcTicksPerSecond, dstTicksPerSecond)
								 | Converts the given time from one clock frequency/resolution to another. | 
						
							| 
									convert(value)
								 | Generic way of converting between two time units. Conversions to smaller
    units use truncating division. Years and months can be converted to each
    other, small units can be converted to each other, but years and months
    cannot be converted to or from smaller units (due to the varying number
    of days in a month or year). | 
						
							| 
									dur(length)
								 | These allow you to construct a Durationfrom the given time units
    with the given length. | 
						
							| 
									nsecsToTicks(ticks)
								 | The reverse of ticksToNSecs. | 
						
							| 
									ticksToNSecs(ticks)
								 | Convenience wrapper around convClockFreqwhich converts ticks at
    a clock frequency ofMonoTime.ticksPerSecondto nanoseconds. | 
						
							| 
									to(td)
								 | TickDuration is DEPRECATED | 
					
				
				
				
					Structs
					
						
						
							| Name | Description | 
						
							| 
									Duration
								 | Represents a duration of time of weeks or less (kept internally as hnsecs).
    (e.g. 22 days or 700 seconds). | 
						
							| 
									MonoTimeImpl
								 | Represents a timestamp of the system's monotonic clock. | 
						
							| 
									TickDuration
								 | Warning: TickDuration is deprecated. Please use MonoTimefor the cases where a monotonic timestamp is needed
          andDurationwhen a duration is needed, rather than using
          TickDuration. | 
					
				
				
				
					Aliases
					
						
						
							| Name | Type | Description | 
						
							| days | dur!"days" | These allow you to construct a Durationfrom the given time units
    with the given length. | 
						
							| hnsecs | dur!"hnsecs" | These allow you to construct a Durationfrom the given time units
    with the given length. | 
						
							| hours | dur!"hours" | These allow you to construct a Durationfrom the given time units
    with the given length. | 
						
							| minutes | dur!"minutes" | These allow you to construct a Durationfrom the given time units
    with the given length. | 
						
							| MonoTime | MonoTimeImpl!(0) | alias for MonoTimeImplinstantiated withClockType.normal. This is
    what most programs should use. It's also what much ofMonoTimeImpluses
    in its documentation (particularly in the examples), because that's what's
    going to be used in most code. | 
						
							| msecs | dur!"msecs" | These allow you to construct a Durationfrom the given time units
    with the given length. | 
						
							| nsecs | dur!"nsecs" | These allow you to construct a Durationfrom the given time units
    with the given length. | 
						
							| seconds | dur!"seconds" | These allow you to construct a Durationfrom the given time units
    with the given length. | 
						
							| usecs | dur!"usecs" | These allow you to construct a Durationfrom the given time units
    with the given length. | 
						
							| weeks | dur!"weeks" | These allow you to construct a Durationfrom the given time units
    with the given length. |