michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* time.cpp - a test program */ michael@0: michael@0: #include "rctime.h" michael@0: michael@0: #include michael@0: #include michael@0: michael@0: #define DEFAULT_ITERATIONS 100 michael@0: michael@0: PRIntn main(PRIntn argc, char **argv) michael@0: { michael@0: RCTime unitialized; michael@0: RCTime now(PR_Now()); michael@0: RCTime current(RCTime::now); michael@0: PRTime time = current; michael@0: michael@0: unitialized = now; michael@0: now.Now(); michael@0: michael@0: return 0; michael@0: } /* main */ michael@0: michael@0: /* time.cpp */ michael@0: