# GetSecs

**URL:** <https://psychtoolbox.discourse.group/t/getsecs/238>\
**Category:** Uncategorized\
**Created:** [September 26, 2014, 4:28pm UTC](https://psychtoolbox.discourse.group/t/getsecs/238 "2014-09-26T16:28:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [September 26, 2014, 4:28pm UTC](https://psychtoolbox.discourse.group/t/getsecs/238/1 "2014-09-26T16:28:44Z")

</div>

Hello there,  
  
I am using Psychtoolbox on Ubuntu 12.04. I am getting a constant value for GetSecs in MATLAB and Octave both even after half an hour gap. On Windows, it is working fine.   
Anyone has idea why this could be happening and how it could be fixed?  
  
Thanks,  
Uday

---

<div class="post-metadata">

**Author:** ![xrli2002](https://avatars.discourse-cdn.com/v4/letter/x/48db29/32.png) [@xrli2002](https://psychtoolbox.discourse.group/u/xrli2002)\
**Post date:** [September 26, 2014, 4:45pm UTC](https://psychtoolbox.discourse.group/t/getsecs/238/2 "2014-09-26T16:45:30Z")

</div>

That is very unlikely. The Linux GetSecs clock starts at the very early time (year 1900?), so the number is huge. You might be seeing only those high digits so there is no change within hours.
Try following:

t = GetSecs;

GetSecs - t &nbsp;% after several seconds

  

Is the answer zeros?

  

-Xiangrui
