History

switch usec timestamps to uint64_t

Stephen Birarda committed 13 years ago

Commit ca8f2591 parent 9ba3bfc20 files · +58 −57Browse files

Showing the changes to interface/src/Application.cpp (1 of 20 files). Show all

Unified · Split

interface/src/Application.cpp+2−2
@@ -903,7 +903,7 @@ void Application::wheelEvent(QWheelEvent* event) { · 902 unmodified lines
903903 void Application::sendPingPackets() {
904904
905905 char nodeTypesOfInterest[] = {NODE_TYPE_VOXEL_SERVER, NODE_TYPE_AUDIO_MIXER, NODE_TYPE_AVATAR_MIXER};
906− long long currentTime = usecTimestampNow();
906+ uint64_t currentTime = usecTimestampNow();
907907 unsigned char pingPacket[1 + sizeof(currentTime)];
908908 pingPacket[0] = PACKET_HEADER_PING;
909909
@@ -2429,7 +2429,7 @@ void Application::displayOverlay() { · 1519 unmodified lines
24292429 // Show on-screen msec timer
24302430 if (_renderFrameTimerOn->isChecked()) {
24312431 char frameTimer[10];
2432− long long mSecsNow = floor(usecTimestampNow() / 1000.0 + 0.5);
2432+ uint64_t mSecsNow = floor(usecTimestampNow() / 1000.0 + 0.5);
24332433 sprintf(frameTimer, "%d\n", (int)(mSecsNow % 1000));
24342434 drawtext(_glWidget->width() - 100, _glWidget->height() - 20, 0.30, 0, 1.0, 0, frameTimer, 0, 0, 0);
24352435 drawtext(_glWidget->width() - 102, _glWidget->height() - 22, 0.30, 0, 1.0, 0, frameTimer, 1, 1, 1);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t