summaryrefslogtreecommitdiffstats
path: root/xorg/X11R7.6/rdp/rdpmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/X11R7.6/rdp/rdpmisc.c')
-rw-r--r--xorg/X11R7.6/rdp/rdpmisc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/xorg/X11R7.6/rdp/rdpmisc.c b/xorg/X11R7.6/rdp/rdpmisc.c
index eb5bedad..1d57d1fa 100644
--- a/xorg/X11R7.6/rdp/rdpmisc.c
+++ b/xorg/X11R7.6/rdp/rdpmisc.c
@@ -668,3 +668,13 @@ get_crc(char* data, int data_bytes)
CRC_END(crc);
return crc;
}
+
+/*****************************************************************************/
+int
+get_mstime(void)
+{
+ struct timeval tp;
+
+ gettimeofday(&tp, 0);
+ return (tp.tv_sec * 1000) + (tp.tv_usec / 1000);
+}