comparison base/RealTime.cpp @ 494:81963c51b488

* Add ability to export a transform structure as RDF -- for use when exporting data from runner, so as to refer back to the generating transform from the audio features rdf * some improvements to pane & layer management when importing rdf, but it's all still a big hack here
author Chris Cannam
date Tue, 25 Nov 2008 17:46:02 +0000
parents beb2948baa77
children 75f154085a4d
comparison
equal deleted inserted replaced
493:3931711b5671 494:81963c51b488
340 std::string s = out.str(); 340 std::string s = out.str();
341 341
342 return s; 342 return s;
343 } 343 }
344 344
345 std::string
346 RealTime::toXsdDuration() const
347 {
348 std::string s = "PT" + toString(false) + "S";
349 return s;
350 }
351
345 RealTime 352 RealTime
346 RealTime::operator*(int m) const 353 RealTime::operator*(int m) const
347 { 354 {
348 double t = (double(nsec) / ONE_BILLION) * m; 355 double t = (double(nsec) / ONE_BILLION) * m;
349 t += sec * m; 356 t += sec * m;