version 3.16.0
new PISystemTime::Frequency type
This commit is contained in:
12
main.cpp
12
main.cpp
@@ -2,6 +2,7 @@
|
||||
#include "picodeparser.h"
|
||||
#include "piiostream.h"
|
||||
#include "pijson.h"
|
||||
#include "piliterals_time.h"
|
||||
#include "pimathbase.h"
|
||||
#include "pip.h"
|
||||
#include "pivaluetree.h"
|
||||
@@ -10,7 +11,14 @@ using namespace PICoutManipulators;
|
||||
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
PICodeParser cp;
|
||||
cp.parseFile("kmm_types.h", false);
|
||||
// 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user