summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/gettime.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-01 19:37:35 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-01 19:37:35 +0000
commit754c5e27f878dc4a46131593e00e78e054faa995 (patch)
treee49b137bf04d56c58c50f5fb1760a6cf84bca658 /plugins/SecureIM/src/gettime.cpp
parent14ad5bd238bb3fb2edf8284a1c35f175e2f31d5f (diff)
SecureIM:
- thread cleaning; - fix SRMM status icon; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4278 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/gettime.cpp')
-rw-r--r--plugins/SecureIM/src/gettime.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/plugins/SecureIM/src/gettime.cpp b/plugins/SecureIM/src/gettime.cpp
index 529a8e0c8e..f38fe2e672 100644
--- a/plugins/SecureIM/src/gettime.cpp
+++ b/plugins/SecureIM/src/gettime.cpp
@@ -11,19 +11,20 @@ const static ULONGLONG ix_epoch = 116444736000000000;
const static ULONGLONG ix_epoch = 116444736000000000LL;
#endif
-DWORD gettime(void) {
+DWORD gettime(void)
+{
- ULONGLONG diff_100_nsec;
- union {
- FILETIME f;
- ULARGE_INTEGER u;
- } now;
+ ULONGLONG diff_100_nsec;
+ union {
+ FILETIME f;
+ ULARGE_INTEGER u;
+ } now;
- GetSystemTimeAsFileTime( &now.f );
+ GetSystemTimeAsFileTime(&now.f);
- diff_100_nsec = now.u.QuadPart - ix_epoch;
+ diff_100_nsec = now.u.QuadPart - ix_epoch;
- return (DWORD)( diff_100_nsec / div_100_nsec );
+ return (DWORD)(diff_100_nsec / div_100_nsec);
}
// EOF