From 24af17846d14b290aa1d90e37e98c4cbe9e173e1 Mon Sep 17 00:00:00 2001 From: pravic Date: Tue, 12 Apr 2016 18:12:52 +0300 Subject: add winapi-km-rs docs --- doc/src/km/time.rs.html | 160 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 doc/src/km/time.rs.html (limited to 'doc/src/km/time.rs.html') diff --git a/doc/src/km/time.rs.html b/doc/src/km/time.rs.html new file mode 100644 index 0000000..2476c7d --- /dev/null +++ b/doc/src/km/time.rs.html @@ -0,0 +1,160 @@ + + + + + + + + + + time.rs.html -- source + + + + + + + + + + + + + + + + + +
 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+
+//! NT Time routines.
+
+/// System time is a count of 100-nanosecond intervals since January 1, 1601.
+pub type SYSTEMTIME = i64;
+
+extern "system"
+{
+	fn KeQuerySystemTime(CurrentTime: *mut SYSTEMTIME);
+	fn KeQueryTickCount(TickCount: *mut i64);
+	/// Converts a GMT system time value to the local system time for the current time zone.
+	pub fn ExSystemTimeToLocalTime(SystemTime: *const SYSTEMTIME, LocalTime: *mut SYSTEMTIME);
+}
+
+/// Obtains the current system time.
+pub fn QuerySystemTime() -> SYSTEMTIME {
+	let mut t = 0i64;
+	unsafe { KeQuerySystemTime(&mut t) };
+	return t;
+}
+
+/// A count of the interval timer interrupts that have occurred since the system was booted.
+pub fn QueryTickCount() -> i64 {
+	let mut t = 0i64;
+	unsafe { KeQueryTickCount(&mut t) };
+	return t;
+}
+
+
+ + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3