Photometry of rapidly varying stars