|
From: Pete M. <mad...@mi...> - 2013-12-27 16:37:29
|
Hi folks,
I've been using mngw for years along with code::blocks.
I recently upgraded mingw and after doing that my application started
acting wonky.
I've been tracking down bugs here and there, but the latest is that
diffetime() appears to be broken.
Stepping through the app in gdb I watched to see reasonable values go
into difftime(t1, t2), but it always seems to return t1.
For example:
int snfLOGmgr::SecsSinceStartup() {
return (int) difftime(Timestamp(), StartupTime);
}
If StartupTime is 1388157426, and Timestamp() returns 1388157546,
difftime should return 120.
Instead it returns 1388157546!!
Has anybody else run into this? Googling for a solution or mention of
the problem has been useless.
THANKS!!
_M
--
Pete McNeil, President
MicroNeil Research Corporation
www.microneil.com
703.779.4909 x7010
twitter/codedweller
|