The world's most popular open source database
#include <ndb_types.h>Include dependency graph for NdbTick.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Typedefs | |
| typedef Uint64 | NDB_TICKS |
Functions | |
| NDB_TICKS | NdbTick_CurrentMillisecond (void) |
| int | NdbTick_CurrentMicrosecond (NDB_TICKS *secs, Uint32 *micros) |
Get current micro second Second method is simply abstraction on top of the first
Returns 0 - Success
Definition at line 59 of file NdbTick.c.
Referenced by client(), FastScheduler::doJob(), execute(), SimulatedBlock::EXECUTE_DIRECT(), NDB_COMMAND(), and testMicros().
00059 { 00060 struct timeval tick_time; 00061 int res = gettimeofday(&tick_time, 0); 00062 00063 if(secs==0) { 00064 NDB_TICKS secs = tick_time.tv_sec; 00065 *micros = tick_time.tv_usec; 00066 *micros = secs*1000000+*micros; 00067 } else { 00068 * secs = tick_time.tv_sec; 00069 * micros = tick_time.tv_usec; 00070 } 00071 return res; 00072 }
Here is the caller graph for this function:

| NDB_TICKS NdbTick_CurrentMillisecond | ( | void | ) |
Returns the current millisecond since 1970
Definition at line 48 of file NdbTick.c.
Referenced by Timer::check(), Ndb::check_send_timeout(), Qmgr::check_startup(), Ndbcntr::StopRecord::checkApiTimeout(), Ndbcntr::StopRecord::checkLqhTimeout_1(), Ndbcntr::StopRecord::checkLqhTimeout_2(), Ndbcntr::StopRecord::checkTcTimeout(), client(), SignalSender::connectAll(), SignalSender::connectOne(), doCopyLap(), doTime(), Ndbcntr::execABORT_ALL_CONF(), Backup::execBACKUP_COMPLETE_REP(), Qmgr::execCM_INFOCONF(), Qmgr::execCONTINUEB(), Ndbcntr::execCONTINUEB(), Backup::execDUMP_STATE_ORD(), Ndbcntr::execREAD_NODESCONF(), Ndbcntr::execSTOP_ME_CONF(), Ndbcntr::execSTOP_REQ(), Backup::execUTIL_SEQUENCE_CONF(), MgmApiSession::get_nodeid(), ArbitMgr::ArbitSignal::getTimediff(), Qmgr::ArbitRec::getTimediff(), ThreadConfig::ipControlLoop(), Dbtup::load_diskpage(), main(), NDB_COMMAND(), Ndbcntr::Ndbcntr(), Dbtup::nr_delete(), Pgman::process_callback(), reportConnect(), MgmtSrvr::Allocated_resources::reserve_node(), Timer::reset(), MgmtSrvr::restartDB(), MgmtSrvr::restartNodes(), ThreadConfig::scanTimeQueue(), Ndb::sendPrepTrans(), ArbitMgr::ArbitSignal::setTimestamp(), Qmgr::ArbitRec::setTimestamp(), test_pool(), ClusterMgr::threadMain(), Qmgr::timerHandlingLab(), Ndbcntr::trySystemRestart(), ArbitTicket::update(), PollGuard::wait_for_input_in_loop(), Ndb::waitCompletedTransactions(), and SignalSender::waitFor().
00049 { 00050 struct timeval tick_time; 00051 gettimeofday(&tick_time, 0); 00052 00053 return 00054 ((NDB_TICKS)tick_time.tv_sec) * ((NDB_TICKS)MILLISEC_PER_SEC) + 00055 ((NDB_TICKS)tick_time.tv_usec) / ((NDB_TICKS)MICROSEC_PER_MILLISEC); 00056 }
Here is the caller graph for this function:

1.4.7

