# Timing commands

Commands to setup the timing

- timing [mode] sets/gets synchronization mode of the detector. Mode: auto, trigger, ro_trigger, gating, triggered_gating (string)

- exptime [i] sets/gets exposure time in s. `Returns` ``(double with 9 decimal digits)

- subexptime [i] sets/gets sub exposure time in s. Used in EIGER only in 32 bit mode. `Returns` ``(double with 9 decimal digits)

- period [i] sets/gets frame period in s. `Returns` ``(double with 9 decimal digits)

- delay [i] sets/gets delay in s. Used in MYTHEN, GOTTHARD only. `Returns` ``(double with 9 decimal digits)

- gates [i] sets/gets number of gates. Used in MYTHEN, GOTTHARD only. `Returns` ``(long long int)

- frames [i] sets/gets number of frames. If `timing` is not `auto`, then it is the number of frames per cycle/trigger. `Returns` ``(long long int)

- cycles [i] sets/gets number of triggers. Timing mode should be set appropriately. `Returns` ``(long long int)

- probes [i] sets/gets number of probes to accumulate. When setting, max 3! cycles should be set to 1, frames to the number of pump-probe events. Used in MYTHEN only. `Returns` ``(long long int)

- measurements [i] sets/gets number of measurements. `Returns` ``(long long int)

- samples [i] sets/gets number of samples expected from the jctb. Used in CHIP TEST BOARD only. `Returns` ``(long long int)

- exptimel gets exposure time left. Used in MYTHEN, GOTTHARD only. Only get! `Returns` ``(double with 9 decimal digits)

- periodl gets frame period left. Used in MYTHEN, GOTTHARD only. Only get! `Returns` ``(double with 9 decimal digits)

- delayl gets delay left. Used in MYTHEN, GOTTHARD only. Only get! `Returns` ``(double with 9 decimal digits)

- gatesl gets number of gates left. Used in MYTHEN, GOTTHARD only. Only get! `Returns` ``(double with 9 decimal digits)

- cyclesl gets number of cylces left. Used in MYTHEN, GOTTHARD only. Only get! `Returns` ``(double with 9 decimal digits)

- probesl gets number of probes left. Used in MYTHEN, GOTTHARD only. Only get! `Returns` ``(double with 9 decimal digits)

- now Actual time of the detector. Only get!

- timestamp Last frame timestamp for MYTHEN. Only get!

- nframes ??? Only get!