From a08b8d45a4366ca573b3289027d8868ef02cccde Mon Sep 17 00:00:00 2001 From: Curt Coder Date: Sun, 25 Sep 2011 19:21:37 +0000 Subject: [PATCH] RTC's usually run at 1 Hz. (nw) --- src/emu/attotime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/attotime.h b/src/emu/attotime.h index b922e3308bf..2440ff7c90a 100644 --- a/src/emu/attotime.h +++ b/src/emu/attotime.h @@ -143,7 +143,7 @@ public: static attotime from_msec(INT64 msec) { return attotime(msec / 1000, (msec % 1000) * (ATTOSECONDS_PER_SECOND / 1000)); } static attotime from_usec(INT64 usec) { return attotime(usec / 1000000, (usec % 1000000) * (ATTOSECONDS_PER_SECOND / 1000000)); } static attotime from_nsec(INT64 nsec) { return attotime(nsec / 1000000000, (nsec % 1000000000) * (ATTOSECONDS_PER_SECOND / 1000000000)); } - static attotime from_hz(double frequency) { assert(frequency > 1); return attotime(0, double(ATTOSECONDS_PER_SECOND) / frequency); } + static attotime from_hz(double frequency) { assert(frequency >= 1); return attotime(0, double(ATTOSECONDS_PER_SECOND) / frequency); } // math attotime &operator+=(const attotime &right);