From ab673a5c7126d72fffeb8b6f64bf183c9788c132 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Fri, 11 Feb 2022 23:33:56 -0800
Subject: [PATCH] Replace use of msclock() with xp_timer()

it just seems it's even worst than Deuce thought. :-)
---
 src/sbbs3/con_out.cpp | 4 ++--
 src/sbbs3/sbbs.h      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sbbs3/con_out.cpp b/src/sbbs3/con_out.cpp
index eeb79cd86e..4abcc4966e 100644
--- a/src/sbbs3/con_out.cpp
+++ b/src/sbbs3/con_out.cpp
@@ -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.0F : 100.0F;
diff --git a/src/sbbs3/sbbs.h b/src/sbbs3/sbbs.h
index 66320f60a5..6563815f7d 100644
--- a/src/sbbs3/sbbs.h
+++ b/src/sbbs3/sbbs.h
@@ -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);
-- 
GitLab