#proc-macro #time #required

macro compiletime

Get the time at compile-time

1 stable release

1.1.0 Jul 12, 2020
1.0.0 Jul 11, 2020

#76 in #required

Zlib license

4KB

Get the time at compile-time!

Currently required nightly Rust due to rust#54727

Example:

fn main() {
	println!("This program was compiled {} ms after 1 January 1970!", compiletime::milliseconds!());
}

Dependencies

~1.5MB
~35K SLoC