-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with not getting new blocks.
Fix GUI. Update binaries to 1.6beta2.
- Loading branch information
Showing
12 changed files
with
172 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include <Windows.h> | ||
#include "helpers.h" | ||
|
||
|
||
int64_t timediff(SYSTEMTIME t1, SYSTEMTIME t2) { | ||
FILETIME ft1, ft2; | ||
SystemTimeToFileTime(&t1, &ft1); | ||
SystemTimeToFileTime(&t2, &ft2); | ||
ULARGE_INTEGER *u1, *u2; | ||
u1 = (ULARGE_INTEGER*)&ft1; | ||
u2 = (ULARGE_INTEGER*)&ft2; | ||
return u2->QuadPart - u1->QuadPart; | ||
} | ||
|
||
int64_t timestamp_ms() { | ||
SYSTEMTIME t1; | ||
GetSystemTime(&t1); | ||
FILETIME ft1; | ||
SystemTimeToFileTime(&t1, &ft1); | ||
ULARGE_INTEGER *u1 = (ULARGE_INTEGER*)&ft1; | ||
// FILETIME is in 100ns intervals, divide by 10000 to get milliseconds. | ||
return u1->QuadPart / 10000; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#pragma once | ||
#include <stdint.h> | ||
|
||
int64_t timestamp_ms(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters