Browse Source

Show hundredths of seconds in HMS clock.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
6cc26446b6
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      Timeline/Clock.H

+ 3
- 2
Timeline/Clock.H View File

@@ -28,7 +28,7 @@ switched between Bar Beat Tick and Wallclock displays */
#include "Timeline.H"
#include "types.h"

const float CLOCK_UPDATE_FREQ = 0.05f;
const float CLOCK_UPDATE_FREQ = 0.06f;

class Clock : public Fl_Widget
{
@@ -61,8 +61,9 @@ public:

int M = S / 60; S -= M * 60;
int H = M / 60; M -= H * 60;
int HS = ((int)(S * 100)) - (((int)S) * 100);

snprintf( dst, n, "%02d:%02d:%04.1f", H, M, S );
snprintf( dst, n, "%02d:%02d:%02.0f:%02d", H, M, S, HS );
}




Loading…
Cancel
Save