directly writing exptime

This commit is contained in:
Erik Frojdh
2020-05-20 09:47:41 +02:00
parent 761f93d753
commit 30fc346e22
3 changed files with 5 additions and 11 deletions

View File

@ -1056,8 +1056,9 @@ void Module::setExptime(int gateIndex, int64_t value) {
}
}
std::array<int64_t, 3> Module::getExptimeForAllGates() {
return sendToDetector<std::array<int64_t, 3>>(F_GET_EXPTIME_ALL_GATES);
std::array<time::ns, 3> Module::getExptimeForAllGates() {
static_assert(sizeof(time::ns) == 8, "ns needs to be 64bit");
return sendToDetector<std::array<time::ns, 3>>(F_GET_EXPTIME_ALL_GATES);
}