diff options
Diffstat (limited to 'plugins/CryptoPP/src/gettime.cpp')
-rw-r--r-- | plugins/CryptoPP/src/gettime.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/plugins/CryptoPP/src/gettime.cpp b/plugins/CryptoPP/src/gettime.cpp index 5b44d84301..ab4687b9b0 100644 --- a/plugins/CryptoPP/src/gettime.cpp +++ b/plugins/CryptoPP/src/gettime.cpp @@ -1,6 +1,5 @@ #include "commonheaders.h"
-
/* FILETIME unit is 100 nanoseconds */
const static long div_100_nsec = 10000000;
@@ -11,19 +10,17 @@ const static ULONGLONG ix_epoch = 116444736000000000; const static ULONGLONG ix_epoch = 116444736000000000LL;
#endif
-u_int gettime(void) {
-
- ULONGLONG diff_100_nsec;
- union {
- FILETIME f;
- ULARGE_INTEGER u;
- } now;
+u_int gettime(void)
+{
+ 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 (u_int)( diff_100_nsec / div_100_nsec );
+ return (u_int)(diff_100_nsec / div_100_nsec);
}
-
-// EOF
|