Device measuring electric current