Search code examples
c#androidmonoxamarinchronometer

How to set and get Base property in chronometer c# newbe


Hi I am new in android and c#. I would like to implement chronometer to my app and I stuck tring to write following java code in c#.

chrono.setBase(SystemClock.ElapsedRealtime());

I get information that i should set Base property like that

public virtual long Base { get; set; }

But how should I do that? Could somebody help me how to make it works? Thanks.


Solution

  • Chronometer chrono = new Chronometer();
    chrono.Base = 1000;