Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
e95e145f23484498c084cb34d4a251731a52cb5d...ab673a5c7126d72fffeb8b6f64bf183c9788c132
Commits (1)
Replace use of msclock() with xp_timer()
· ab673a5c
Rob Swindell
authored
Feb 11, 2022
it just seems it's even worst than Deuce thought. :-)
ab673a5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/sbbs3/con_out.cpp
src/sbbs3/con_out.cpp
+2
-2
src/sbbs3/sbbs.h
src/sbbs3/sbbs.h
+1
-1
No files found.
src/sbbs3/con_out.cpp
View file @
ab673a5c
...
...
@@ -1398,8 +1398,8 @@ void sbbs_t::progress(const char* text, int count, int total, int interval)
if
(
cfg
.
node_num
==
0
)
return
;
// Don't output this for events
clock_t
now
=
msclock
();
if
(
now
-
last_progress
<
interval
)
double
now
=
xp_timer
();
if
(
(
now
-
last_progress
)
*
1000
<
interval
)
return
;
if
(
text
==
NULL
)
text
=
""
;
float
pct
=
total
?
((
float
)
count
/
total
)
*
100.0
F
:
100.0
F
;
...
...
src/sbbs3/sbbs.h
View file @
ab673a5c
...
...
@@ -848,7 +848,7 @@ public:
bool
update_nodeterm
(
void
);
int
backfill
(
const
char
*
str
,
float
pct
,
int
full_attr
,
int
empty_attr
);
void
progress
(
const
char
*
str
,
int
count
,
int
total
,
int
interval
=
500
);
clock_t
last_progress
=
0
;
double
last_progress
=
0
;
bool
saveline
(
void
);
bool
restoreline
(
void
);
int
petscii_to_ansibbs
(
unsigned
char
);
...
...