MCPcopy Create free account
hub / github.com/Recordscript/recordscript / get_exe_time

Function get_exe_time

libs/hbb_common/src/lib.rs:283–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281}
282
283pub fn get_exe_time() -> SystemTime {
284 std::env::current_exe().map_or(UNIX_EPOCH, |path| {
285 let m = get_modified_time(&path);
286 let c = get_created_time(&path);
287 if m > c {
288 m
289 } else {
290 c
291 }
292 })
293}
294
295pub fn get_uuid() -> Vec<u8> {
296 #[cfg(not(any(target_os = "android", target_os = "ios")))]

Callers

nothing calls this directly

Calls 2

get_modified_timeFunction · 0.85
get_created_timeFunction · 0.85

Tested by

no test coverage detected