Searched refs:secure_time_ns (Results 1 – 5 of 5) sorted by relevance
33 int64_t secure_time_ns = 0; in now() local34 rv = trusty_gettime(0, &secure_time_ns); in now()35 if (rv || secure_time_ns < 0) { in now()37 secure_time_ns); in now()40 return static_cast<uint64_t>(secure_time_ns) / 1000000; in now()
26 let mut secure_time_ns = 0; in now() localVariable28 let rc = unsafe { trusty_sys::gettime(0, 0, &mut secure_time_ns) }; in now()29 let secure_time_ns = if rc < 0 { in now() localVariable35 (secure_time_ns / 1000) / 1000 in now()38 MillisecondsSinceEpoch(secure_time_ns) in now()
82 int64_t secure_time_ns = 0; in milliseconds_since_boot() local83 rv = trusty_gettime(0, &secure_time_ns); in milliseconds_since_boot()84 if (rv || secure_time_ns < 0) { in milliseconds_since_boot()86 secure_time_ns); in milliseconds_since_boot()87 secure_time_ns = in milliseconds_since_boot()90 return static_cast<uint64_t>(secure_time_ns) / 1000 / 1000; in milliseconds_since_boot()
99 int64_t secure_time_ns = 0; in TEST_F() local101 int ret = trusty_gettime(0, &secure_time_ns); in TEST_F()109 htobe64(secure_time_ns), in TEST_F()129 ret = trusty_gettime(0, &secure_time_ns); in TEST_F()137 htobe64(secure_time_ns), in TEST_F()
202 int64_t secure_time_ns = 0; in GetMillisecondsSinceBoot() local203 rc = trusty_gettime(0, &secure_time_ns); in GetMillisecondsSinceBoot()205 secure_time_ns = 0; in GetMillisecondsSinceBoot()208 return secure_time_ns / 1000 / 1000; in GetMillisecondsSinceBoot()