Exemplo n.º 1
0
//--------------------------------------------------------------
void ofApp::setup(){
	ofLogLevel(OF_LOG_VERBOSE);
	ofLogToConsole();
	sliderInt = 100;
	color = ofColor::blue;
	cursor = ofPoint(ofGetWindowWidth() / 2 - sliderInt / 2, ofGetWindowHeight() / 2 - sliderInt / 2);

}
Exemplo n.º 2
0
void taskBroker::saveResults()
{
	string filename = ofToString(ofGetUnixTime());
	ofLogToFile(filename);
	std::vector<blenderTask*>::iterator it = measuredTasks.begin();
	while (it != measuredTasks.end())
	{
		float tactiv = (*it)->windowActiveTime - (*it)->startTime;
		float ttotal = (*it)->endTime - (*it)->startTime;
		ofLog() << ";" <<
				(*it)->countId << ";" <<
				(*it)->identifier << ";" <<
				(*it)->startTime << ";" <<
				tactiv << ";" <<
				ttotal << ";" <<
				(*it)->result;
		++it;
	}
	ofLogToConsole();
}