sync code with last improvements from OpenBSD

This commit is contained in:
purplerain 2023-08-28 05:57:34 +00:00
commit 88965415ff
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
26235 changed files with 29195616 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#if !defined( lint ) && !defined( SABER )
/* #ident "@(#)erase_debug.h 4.14 99/06/17 xlockmore" */
#endif
/*-
* Erase Debug stuff
*
* See xlock.c for copying information.
*
* Revision History:
* 17-06-99: Started log. :)
*/
#if HAVE_GETTIMEOFDAY && defined( DEBUG )
GETTIMEOFDAY(&tp);
t_prev = (int) (tp.tv_sec * 1000 + tp.tv_usec / 1000);
(void) printf( "Elapsed time in %s : %d\n" , ERASEMODE , t_prev - t_0 );
#endif