25 lines
699 B
C++
25 lines
699 B
C++
#include "pibytearray.h"
|
|
#include "picodeparser.h"
|
|
#include "piiostream.h"
|
|
#include "pijson.h"
|
|
#include "piliterals_time.h"
|
|
#include "pimathbase.h"
|
|
#include "pip.h"
|
|
#include "pivaluetree.h"
|
|
|
|
using namespace PICoutManipulators;
|
|
|
|
|
|
int main(int argc, char * argv[]) {
|
|
// PICodeParser cp;
|
|
// cp.parseFile("kmm_types.h", false);
|
|
piCout << (1_Hz * 100).toSystemTime().toSeconds();
|
|
piCout << (1_Hz * 100);
|
|
piCout << (1_Hz + 10_GHz);
|
|
piCout << (100_Hz + 1_KHz - 10_Hz);
|
|
piCout << PISystemTime::Frequency::fromSystemTime({0, 200000000});
|
|
piCout << PISystemTime::Frequency::fromSystemTime(25_ms);
|
|
piCout << PISystemTime::Frequency::fromSystemTime(25_ms).toSystemTime().toMilliseconds();
|
|
return 0;
|
|
}
|