当前位置: 首页>>代码示例>>C++>>正文


C++ TTimer::Stop方法代码示例

本文整理汇总了C++中TTimer::Stop方法的典型用法代码示例。如果您正苦于以下问题:C++ TTimer::Stop方法的具体用法?C++ TTimer::Stop怎么用?C++ TTimer::Stop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TTimer的用法示例。


在下文中一共展示了TTimer::Stop方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: DropIndexes

/**
@SYMTestCaseID          SYSLIB-DBMS-CT-1316
@SYMTestCaseDesc        Tests for dropping an index
@SYMTestPriority        Medium
@SYMTestActions        	Drop an integer and text index from the table. Test for damage of database
@SYMTestExpectedResults Test must not fail
@SYMREQ                 REQ0000
*/
LOCAL_C void DropIndexes()
	{
	test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-1316 "));
#ifndef __TOOLS2__
	TheTimer.Start(_L("drop Int[32]"));
#endif
	test(TheDatabase.DropIndex(KIndexInt,KTableName)==KErrNone);
#ifndef __TOOLS2__
	TheTimer.Stop();
	TheTimer.Start(_L("drop Text[200]"));
#endif
	test(TheDatabase.DropIndex(KIndexText,KTableName)==KErrNone);
#ifndef __TOOLS2__
	TheTimer.Stop();
#endif
	test(!TheDatabase.IsDamaged());
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:25,代码来源:t_big.cpp

示例2: Recover

/**
@SYMTestCaseID          SYSLIB-DBMS-CT-1315
@SYMTestCaseDesc        Database recovery test 
@SYMTestPriority        Medium
@SYMTestActions        	Calls up RDbStoreDatabase::Recover() function 
@SYMTestExpectedResults Test must not fail
@SYMREQ                 REQ0000
*/
LOCAL_C void Recover()
	{
	test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-1315 "));
#ifndef __TOOLS2__
	TheTimer.Start(_L("recover"));
#endif
	test(TheDatabase.Recover()==KErrNone);
#ifndef __TOOLS2__
	TheTimer.Stop();
#endif
	test(!TheDatabase.IsDamaged());
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:20,代码来源:t_big.cpp

示例3: TestIndex

/**
@SYMTestCaseID          SYSLIB-DBMS-CT-0580
@SYMTestCaseDesc        Tests the database definition and enquiry functions
@SYMTestPriority        Medium
@SYMTestActions        	Tests by setting an active index for the table.   
@SYMTestExpectedResults Test must not fail
@SYMREQ                 REQ0000
*/
LOCAL_C void TestIndex(const TDesC& aName,const CDbKey& aKey)
	{
	test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-0580 "));
#ifndef __TOOLS2__
	TheTimer.Start(_L("build"));
#endif
	test(TheDatabase.CreateIndex(aName,KTableName,aKey)==KErrNone);
#ifndef __TOOLS2__
	TheTimer.Stop();
#endif
	test(TheTable.Open(TheDatabase,KTableName)==KErrNone);
	test(TheTable.SetIndex(aName)==KErrNone);
	IterateL(TheTable.ENext);
	TheTable.Close();
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:23,代码来源:t_big.cpp

示例4: BigTestL

/**
@SYMTestCaseID          SYSLIB-DBMS-CT-0579
@SYMTestCaseDesc        Tests the database definition and enquiry functions
@SYMTestPriority        Medium
@SYMTestActions        	Executes the index and bookmark tests
@SYMTestExpectedResults Test must not fail
@SYMREQ                 REQ0000
*/
LOCAL_C void BigTestL()
	{
	test.Start(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-0579 Table "));
	CreateDatabaseL();
	BuildTable(KRecords);
	test(TheTable.Open(TheDatabase,KTableName)==KErrNone);
	TheTable.EndL();
	IterateL(TheTable.EPrevious);
	TheTable.BeginningL();
	IterateL(TheTable.ENext);
	TheTable.EndL();
	IterateL(TheTable.EPrevious);
	TheTable.Close();
	test.Next(_L("Int32 Index"));
	CDbKey *key=CDbKey::NewLC();
	key->AddL(KColumnInt);
	key->MakeUnique();
	TestIndex(KIndexInt,*key);
	test.Next(_L("Text[200] Index"));
	key->Clear();
	key->AddL(KColumnText);
	key->MakeUnique();
	TestIndex(KIndexText,*key);
	test.Next(_L("Bookmarks"));
	TestBookmark();
	test.Next(_L("Int32 Index"));
#ifndef __TOOLS2__
	TheTimer.Start(_L("drop"));
#endif
	test(TheDatabase.DropIndex(KIndexInt,KTableName)==KErrNone);
#ifndef __TOOLS2__
	TheTimer.Stop();
#endif
	key->Clear();
	key->AddL(KColumnInt);
	key->MakeUnique();
	TestIndex(KIndexInt,*key);
	CleanupStack::PopAndDestroy();
	test.Next(_L("Break & Recover"));
	BreakIndex();
	Recover();
	test.Next(_L("Drop Indexes"));
	DropIndexes();
	test.Next(_L("Delete all records"));
	DeleteTable();
	CloseDatabaseL();
	test.End();
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:56,代码来源:t_big.cpp

示例5: BuildTable

/**
@SYMTestCaseID          SYSLIB-DBMS-CT-1312
@SYMTestCaseDesc        Create a table in database
@SYMTestPriority        Medium
@SYMTestActions        	Build a table and write records into the table.Test for commiting the transactions.
@SYMTestExpectedResults Test must not fail
@SYMREQ                 REQ0000
*/
LOCAL_C void BuildTable(TInt aCount)
	{
	test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-1312 "));
#ifndef __TOOLS2__
	TheTimer.Start(_L("build"));
#endif
	CreateTable();
	TheDatabase.Begin();
	test(TheTable.Open(TheDatabase,KTableName)==KErrNone);
	WriteRecords(aCount);
	test(TheDatabase.Commit()==KErrNone);
	TheTable.Close();
#ifndef __TOOLS2__
	TheTimer.Stop();
#endif
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:24,代码来源:t_big.cpp

示例6: BreakIndex

/**
@SYMTestCaseID          SYSLIB-DBMS-CT-1314
@SYMTestCaseDesc        Discarding indexes belonging to the table on database 
@SYMTestPriority        Medium
@SYMTestActions        	Tests for RDbIncremental::DropTable(),RDbIncremental::Next() function.
@SYMTestExpectedResults Test must not fail
@SYMREQ                 REQ0000
*/
LOCAL_C void BreakIndex()
	{
	test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-1314 "));
#ifndef __TOOLS2__
	TheTimer.Start(_L("break"));
#endif
	TInt step;
	RDbIncremental drop;
	test(drop.DropTable(TheDatabase,KTableName,step)==KErrNone);
	test(drop.Next(step)==KErrNone);
	test(step>0);
	drop.Close();	// abort the drop
	test(TheDatabase.IsDamaged());
#ifndef __TOOLS2__
	TheTimer.Stop();
#endif
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:25,代码来源:t_big.cpp

示例7: IterateL

/**
@SYMTestCaseID          SYSLIB-DBMS-CT-1313
@SYMTestCaseDesc        Tests for total rows in the rowset
@SYMTestPriority        Medium
@SYMTestActions        	Iterate through the table.Test for the total numbers of rows available 
@SYMTestExpectedResults Test must not fail
@SYMREQ                 REQ0000
*/
LOCAL_C void IterateL(RDbTable::TPosition aDirection)
	{
	test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-1313 "));
#ifndef __TOOLS2__
	TheTimer.Start(_L("iterate"));
#endif
	TInt cc=0;
	while (TheTable.GotoL(aDirection))
		{
		++cc;
		TheTable.GetL();
		}
#ifndef __TOOLS2__
	TheTimer.Stop();
#endif
	test(cc=TheTable.CountL());
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:25,代码来源:t_big.cpp

示例8: Next

//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//
void Next()
{
  GetProjection(event, event);
  
  FindEdges(); 

  if( (start[1]-start[0])> MinStartDist ) // limit the burst distance
    {
      GetAmpSignals();
      
      GetPMTSignals();
      
      GetShpSignals();

      if( !(event%100) )
	{
	  DrawAll();  
	  DrawDistributions();
	  PrintAll();
	  printf("event: %i\n", event);
	}  
    }
  event++;

  if( event == event_lastt )
    {
      ftimer.Stop();
                  
      FitProfiles();
      
      PrintAll();

      DrawAll();  

      DrawDistributions();

      WriteAll();
      
      gSystem->Exit(1);
    }
}
开发者ID:ikeshel,项目名称:anapanda,代码行数:43,代码来源:analyze.C

示例9: process

int process(jack_nframes_t nframes, void* arg)
{
    TimerProcess.Start();

    static uint64_t frametime = 0;
    TJackSynth* synth = static_cast<TJackSynth*>(arg);

    /* Process MIDI input */
    void* inbuf = jack_port_get_buffer(MidiIn, nframes);
    jack_nframes_t event_count = jack_midi_get_event_count(inbuf);
    for (jack_nframes_t i = 0; i < event_count; i++) {
        jack_midi_event_t event;
        jack_midi_event_get(&event, inbuf, i);
        std::vector<uint8_t> data(event.buffer, event.buffer + event.size);
        synth->HandleMidi(data, frametime + event.time);
    }

    /* Send MIDI */
    void* outbuf = jack_port_get_buffer(MidiOut, nframes);
    jack_midi_clear_buffer(outbuf);
    while (!MidiOutQueue.empty()) {
        const std::vector<uint8_t>& data = MidiOutQueue.front();
        int ret = jack_midi_event_write(outbuf, 0, data.data(), data.size());
        MidiOutQueue.pop();
        if (ret != 0) {
            fprintf(stderr, "MIDI send error\n");
        }
    }

    synth->Process(nframes);

    frametime += nframes;
    TimerProcess.Stop();

    return 0;
}
开发者ID:JonasNorling,项目名称:jacksynth,代码行数:36,代码来源:main.cpp

示例10: DeleteTable

/**
@SYMTestCaseID          SYSLIB-DBMS-CT-1317
@SYMTestCaseDesc        Deleting a table from the database 
@SYMTestPriority        Medium
@SYMTestActions        	Delete the rows from the rowset.Check for empty rows in the rowset.
@SYMTestExpectedResults Test must not fail
@SYMREQ                 REQ0000
*/
LOCAL_C void DeleteTable()
	{
	test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-1317 "));
	const TInt KTenthRecords=KRecords/10;

	test (TheTable.Open(TheDatabase,KTableName)==KErrNone);
	TheDatabase.Begin();
	TInt ii;
	for (ii=0;ii<15;++ii)
		{
		TheTable.NextL();
		TheTable.DeleteL();
		}
	TheTable.NextL();
	TDbBookmark mark=TheTable.Bookmark();
	TheTable.Close();
	TheDatabase.Commit();
	CloseDatabaseL();
	OpenDatabaseL();
#ifndef __TOOLS2__
	TheTimer.Start(_L("delete table"));
#endif
	test (TheTable.Open(TheDatabase,KTableName)==KErrNone);
	TheDatabase.Begin();
	TheTable.GotoL(mark);
	TheTable.DeleteL();
	for (ii=0;ii<KTenthRecords*2-16;++ii)
		{
		TheTable.NextL();
		TheTable.DeleteL();
		}
	TheTable.EndL();
	for (ii=0;ii<KTenthRecords*2;++ii)
		{
		TheTable.PreviousL();
		TheTable.DeleteL();
		}
	TheTable.BeginningL();
	for (ii=0;ii<KTenthRecords*3;++ii)
		TheTable.NextL();
	for (ii=0;ii<KTenthRecords*2;++ii)
		{
		TheTable.NextL();
		TheTable.DeleteL();
		}
	for (ii=0;ii<KTenthRecords*2;++ii)
		{
		TheTable.PreviousL();
		TheTable.DeleteL();
		}
	for (ii=0;ii<KTenthRecords;++ii)
		{
		TheTable.NextL();
		TheTable.DeleteL();
		}
	for (ii=0;ii<KTenthRecords;++ii)
		{
		TheTable.PreviousL();
		TheTable.DeleteL();
		}
	test (TheTable.CountL()==0);
	test (!TheTable.NextL());
	test (!TheTable.PreviousL());
	test (TheDatabase.Commit()==KErrNone);
	TheTable.Close();
#ifndef __TOOLS2__
	TheTimer.Stop();
#endif
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:77,代码来源:t_big.cpp


注:本文中的TTimer::Stop方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。