api ... the code related to device elapsed